[
https://issues.apache.org/jira/browse/AXIS2-4330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771429#action_12771429
]
Saipradeep VG edited comment on AXIS2-4330 at 10/29/09 3:07 PM:
----------------------------------------------------------------
Daniels,
I am using the latest version 1.5.1 of axis2.0, which has the above said fix.
Can you please elaborate on how I can use it with my stub.
For instance, I am creating the stub as follows
paws = new PAWSStub(WS_ENDPOINT);
where each thread has a new instance of stub.
Right now for threads more than 2 we are encountering the following exception
19:41:57,785 INFO HTTPSender:202 - Unable to sendViaPost to
url[http://localhost:8085/axis2/services/PAWS]
org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting
for connection
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:497)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at com.tcs.nier.ws.PAWSStub.getTaggedEntities(PAWSStub.java:442)
at
com.tcs.atc.nier.ner.nerdictclient.Annotator.annotateText(Annotator.java:76)
at com.tcs.atc.nier.ner.nerdictclient.Annotator.run(Annotator.java:58)
at com.tool.multijobprocessor.MyThread.run(MyThread.java:28)
org.apache.axis2.AxisFault: Timeout waiting for connection
was (Author: saipradeep):
Daniels,
I am using the latest version 1.5.1 of axis2.0, which has the above said fix.
Can you please elaborate on how I can use it with my stub.
For instance, I am creating the stub as follows with the earlier version of
1.5.0
paws = new PAWSStub(WS_ENDPOINT);
where each thread has a new instance of stub.
Right now for threads more than 2 we are encountering the following exception
19:41:57,785 INFO HTTPSender:202 - Unable to sendViaPost to
url[http://localhost:8085/axis2/services/PAWS]
org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting
for connection
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:497)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:542)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at com.tcs.nier.ws.PAWSStub.getTaggedEntities(PAWSStub.java:442)
at
com.tcs.atc.nier.ner.nerdictclient.Annotator.annotateText(Annotator.java:76)
at com.tcs.atc.nier.ner.nerdictclient.Annotator.run(Annotator.java:58)
at com.tool.multijobprocessor.MyThread.run(MyThread.java:28)
org.apache.axis2.AxisFault: Timeout waiting for connection
> axis2 client machine has many CLOSE_WAIT tcp
> ---------------------------------------------
>
> Key: AXIS2-4330
> URL: https://issues.apache.org/jira/browse/AXIS2-4330
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: client-api
> Affects Versions: 1.4.1
> Environment: solaris
> Reporter: jenny anderson
> Fix For: 1.5.1
>
> Attachments: TuxedoWebServiceStub.java
>
>
> My application is using axis2 web service. It invokes web service thousand
> times per second. We observed thousand CLOSE_WAIT connection after the
> application is run for less than 10 hours. I checked even I set
> REUSE_HTTP_CLIENT to false, it still gets CLOSE_WAIT.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.