Deepal, We are also having the same issue - it looks like we already have a bug - https://issues.apache.org/jira/browse/AXIS2-2593 - that is still not fixed for blocking calls. Any comments on this as to when we will have a fix?
Also, we are using Axis2 1.2 and did not see any cleanupTransport method in ServiceClient. Was this added post 1.2? I just see a cleanup method in ServiceClient and no cleanupTransport method. Thanks, Shantanu ----- Original Message ---- From: Deepal Jayasinghe <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Sent: Monday, August 20, 2007 12:00:17 AM Subject: Re: too many connections openned... hi Zoe, Please create a JIRA, in the meantime try to do the following stub._getServiceClient().cleanupTransport(); Thanks Deepal > Hi guru > > When using the axis2 stub generated by wsdl2java, do I need to > remember to close the connection after calling the stub function? > > Example: > Stub function: > searchResponse = oneStub.searchForNumber(...) > // try to call close here? > > -- generated stub --- > in searchForNumber() { > _operationClient.execute(true); > // process response > ... > } > > While I run 6 copy of the clients, I found there are so many > connection hanging in the client as well as server: > > Server > 1 CLOSING > 1 LISTEN > 23 ESTABLISHED > 24 TIME_WAIT > 41 SYN_RCVD > 100 FIN_WAIT_2 > 482 FIN_WAIT_1 > > > Client (15080 is the server port) > $netstat |awk '/15080/ {print $4}' |sort |uniq -c |sort -n > 4 FIN_WAIT_2 > 6 SYN_SENT > 397 CLOSE_WAIT > 928 TIME_WAIT > 1372 ESTABLISHED > > All client time out at the end: > org.apache.axis2.AxisFault: Read timed out > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com > monsHTTPTransportSender.java:221) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO > peration.java:330) > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx > isOperation.java:294) > ... > > Thank in advanced! > > > > Regards > Rex > > ------------------------------------------------------------------------ > Luggage? GPS? Comic books? > Check out fitting gifts for grads > <http://us.rd.yahoo.com/evt=48249/*http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz> > at Yahoo! Search. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]