You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "TEST (Created) (JIRA)" <ji...@apache.org> on 2012/02/24 13:05:48 UTC

[jira] [Created] (AXIS2-5251) org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection

org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
--------------------------------------------------------------------------------------------

                 Key: AXIS2-5251
                 URL: https://issues.apache.org/jira/browse/AXIS2-5251
             Project: Axis2
          Issue Type: Bug
          Components: transports
    Affects Versions: 1.5.5
         Environment: Solaris,UNIX,Java
            Reporter: TEST
            Priority: Critical


The client stub was working perfectly fine with lower load/requests. The same application when went live failed, giving some successful responses and some " Timeout waiting for connection" exceptions with heavy load/requests.

The axis version used is axis2-1.5.5

Please find the exception below -
Feb 23, 2012 1:10:11 AM org.apache.axis2.transport.http.HTTPSender sendViaPost
INFO: Unable to sendViaPost to url[http://97.16.143.78:8080/ua/soap]
org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
        at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManage
r.java:497)
        at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnect
ionManager.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:557)
        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:438)
        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 org.apache.axis2.axis2userguide.QuantumUAStub.getSubscriber(QuantumUAStub.java:1340)
        at org.apache.axis2.axis2userguide.SOExecutionThread.getCustomer(AAA_Broadhop.java:1070)
        at org.apache.axis2.axis2userguide.SOExecutionThread.run(AAA_Broadhop.java:3446)
        at java.lang.Thread.run(Thread.java:595)

According to me, the above exception is taken care in the original base code generated with wsdl file. The code is pasted below which should take care the cleanup of the transport ( http sessions) but it is not as I am getting some "Timeout waiting for connection" exceptions.
finally {
                if (_messageContext.getTransportOut() != null) {
                      _messageContext.getTransportOut().getSender().cleanup(_messageContext);
                }

Can you please suggest what is going wrong here.
The code uses thread mechanism for each request. The code is attached for your reference.
Let me know if more information is required.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Issue Comment Edited] (AXIS2-5251) org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection

Posted by "Sagara Gunathunga (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225783#comment-13225783 ] 

Sagara Gunathunga  edited comment on AXIS2-5251 at 3/9/12 2:11 AM:
-------------------------------------------------------------------

Worked with 1.6.1 without any issue. 
                
      was (Author: sagara):
    Worked will 1.6.1 without any issue. 
                  
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5251
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5251
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.5
>         Environment: Solaris,UNIX,Java
>            Reporter: TEST
>            Priority: Critical
>              Labels: performance
>         Attachments: getCustomer_autogeneratedcode.rtf, getCustomer_client.rtf
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The client stub was working perfectly fine with lower load/requests. The same application when went live failed, giving some successful responses and some " Timeout waiting for connection" exceptions with heavy load/requests.
> The axis version used is axis2-1.5.5
> Please find the exception below -
> Feb 23, 2012 1:10:11 AM org.apache.axis2.transport.http.HTTPSender sendViaPost
> INFO: Unable to sendViaPost to url[http://97.16.143.78:8080/ua/soap]
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManage
> r.java:497)
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnect
> ionManager.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:557)
>         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:438)
>         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 org.apache.axis2.axis2userguide.QuantumUAStub.getSubscriber(QuantumUAStub.java:1340)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.getCustomer(AAA_Broadhop.java:1070)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.run(AAA_Broadhop.java:3446)
>         at java.lang.Thread.run(Thread.java:595)
> According to me, the above exception is taken care in the original base code generated with wsdl file. The code is pasted below which should take care the cleanup of the transport ( http sessions) but it is not as I am getting some "Timeout waiting for connection" exceptions.
> finally {
>                 if (_messageContext.getTransportOut() != null) {
>                       _messageContext.getTransportOut().getSender().cleanup(_messageContext);
>                 }
> Can you please suggest what is going wrong here.
> The code uses thread mechanism for each request. The code is attached for your reference.
> Let me know if more information is required.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Updated] (AXIS2-5251) org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection

Posted by "TEST (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

TEST updated AXIS2-5251:
------------------------

    Attachment: getCustomer_client.rtf
                getCustomer_autogeneratedcode.rtf
    
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5251
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5251
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.5
>         Environment: Solaris,UNIX,Java
>            Reporter: TEST
>            Priority: Critical
>              Labels: performance
>         Attachments: getCustomer_autogeneratedcode.rtf, getCustomer_client.rtf
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The client stub was working perfectly fine with lower load/requests. The same application when went live failed, giving some successful responses and some " Timeout waiting for connection" exceptions with heavy load/requests.
> The axis version used is axis2-1.5.5
> Please find the exception below -
> Feb 23, 2012 1:10:11 AM org.apache.axis2.transport.http.HTTPSender sendViaPost
> INFO: Unable to sendViaPost to url[http://97.16.143.78:8080/ua/soap]
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManage
> r.java:497)
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnect
> ionManager.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:557)
>         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:438)
>         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 org.apache.axis2.axis2userguide.QuantumUAStub.getSubscriber(QuantumUAStub.java:1340)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.getCustomer(AAA_Broadhop.java:1070)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.run(AAA_Broadhop.java:3446)
>         at java.lang.Thread.run(Thread.java:595)
> According to me, the above exception is taken care in the original base code generated with wsdl file. The code is pasted below which should take care the cleanup of the transport ( http sessions) but it is not as I am getting some "Timeout waiting for connection" exceptions.
> finally {
>                 if (_messageContext.getTransportOut() != null) {
>                       _messageContext.getTransportOut().getSender().cleanup(_messageContext);
>                 }
> Can you please suggest what is going wrong here.
> The code uses thread mechanism for each request. The code is attached for your reference.
> Let me know if more information is required.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5251) org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection

Posted by "TEST (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219137#comment-13219137 ] 

TEST commented on AXIS2-5251:
-----------------------------

I tried the same code with axis2-1.6.1 version but not sure if it resolves the issue as the problem cannot be reproduced in test environment. It can be checked when it goes live next time.

The steps for the code are -
1) receives the request
2) creates a thread
3) creates client stub
4) calls the method of server using client stub.(the framework internally processes the request and cleans the transport) 

The above steps are done for the thousands of requests received.
                
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5251
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5251
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.5
>         Environment: Solaris,UNIX,Java
>            Reporter: TEST
>            Priority: Critical
>              Labels: performance
>         Attachments: getCustomer_autogeneratedcode.rtf, getCustomer_client.rtf
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The client stub was working perfectly fine with lower load/requests. The same application when went live failed, giving some successful responses and some " Timeout waiting for connection" exceptions with heavy load/requests.
> The axis version used is axis2-1.5.5
> Please find the exception below -
> Feb 23, 2012 1:10:11 AM org.apache.axis2.transport.http.HTTPSender sendViaPost
> INFO: Unable to sendViaPost to url[http://97.16.143.78:8080/ua/soap]
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManage
> r.java:497)
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnect
> ionManager.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:557)
>         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:438)
>         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 org.apache.axis2.axis2userguide.QuantumUAStub.getSubscriber(QuantumUAStub.java:1340)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.getCustomer(AAA_Broadhop.java:1070)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.run(AAA_Broadhop.java:3446)
>         at java.lang.Thread.run(Thread.java:595)
> According to me, the above exception is taken care in the original base code generated with wsdl file. The code is pasted below which should take care the cleanup of the transport ( http sessions) but it is not as I am getting some "Timeout waiting for connection" exceptions.
> finally {
>                 if (_messageContext.getTransportOut() != null) {
>                       _messageContext.getTransportOut().getSender().cleanup(_messageContext);
>                 }
> Can you please suggest what is going wrong here.
> The code uses thread mechanism for each request. The code is attached for your reference.
> Let me know if more information is required.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5251) org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection

Posted by "TEST (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216696#comment-13216696 ] 

TEST commented on AXIS2-5251:
-----------------------------

Would like to give some more information, the application is thread based. A thread is created for each request which in turn creates a new instance of Client stub. If axis2 allows only 2 httpclient sessions, then why I am not able to reproduce in test environment.
If I need to maximise the number of connections, then is it possible to create only one instance of Client stub and increase the maximum no of connections and use this instance of client stub for the thousands of requests. Will there be any problem. Please guide me asap for the problem. 
Thanks in advance
                
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5251
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5251
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.5
>         Environment: Solaris,UNIX,Java
>            Reporter: TEST
>            Priority: Critical
>              Labels: performance
>         Attachments: getCustomer_autogeneratedcode.rtf, getCustomer_client.rtf
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The client stub was working perfectly fine with lower load/requests. The same application when went live failed, giving some successful responses and some " Timeout waiting for connection" exceptions with heavy load/requests.
> The axis version used is axis2-1.5.5
> Please find the exception below -
> Feb 23, 2012 1:10:11 AM org.apache.axis2.transport.http.HTTPSender sendViaPost
> INFO: Unable to sendViaPost to url[http://97.16.143.78:8080/ua/soap]
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManage
> r.java:497)
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnect
> ionManager.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:557)
>         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:438)
>         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 org.apache.axis2.axis2userguide.QuantumUAStub.getSubscriber(QuantumUAStub.java:1340)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.getCustomer(AAA_Broadhop.java:1070)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.run(AAA_Broadhop.java:3446)
>         at java.lang.Thread.run(Thread.java:595)
> According to me, the above exception is taken care in the original base code generated with wsdl file. The code is pasted below which should take care the cleanup of the transport ( http sessions) but it is not as I am getting some "Timeout waiting for connection" exceptions.
> finally {
>                 if (_messageContext.getTransportOut() != null) {
>                       _messageContext.getTransportOut().getSender().cleanup(_messageContext);
>                 }
> Can you please suggest what is going wrong here.
> The code uses thread mechanism for each request. The code is attached for your reference.
> Let me know if more information is required.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5251) org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection

Posted by "Oliver Heard (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13405802#comment-13405802 ] 

Oliver Heard commented on AXIS2-5251:
-------------------------------------

I'm experiencing this on 1.6.1 consistently after 2 requests.

I've added calls to *Stub.cleanup(), *Stub._getServiceClient().cleanup() and *Stub._getServiceClient().cleanupTransport() but nothing changed.

I'm using a stub to call another service from within a service hosted in Axis2.
                
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5251
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5251
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.5
>         Environment: Solaris,UNIX,Java
>            Reporter: TEST
>            Priority: Critical
>              Labels: performance
>         Attachments: getCustomer_autogeneratedcode.rtf, getCustomer_client.rtf
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The client stub was working perfectly fine with lower load/requests. The same application when went live failed, giving some successful responses and some " Timeout waiting for connection" exceptions with heavy load/requests.
> The axis version used is axis2-1.5.5
> Please find the exception below -
> Feb 23, 2012 1:10:11 AM org.apache.axis2.transport.http.HTTPSender sendViaPost
> INFO: Unable to sendViaPost to url[http://97.16.143.78:8080/ua/soap]
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManage
> r.java:497)
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnect
> ionManager.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:557)
>         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:438)
>         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 org.apache.axis2.axis2userguide.QuantumUAStub.getSubscriber(QuantumUAStub.java:1340)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.getCustomer(AAA_Broadhop.java:1070)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.run(AAA_Broadhop.java:3446)
>         at java.lang.Thread.run(Thread.java:595)
> According to me, the above exception is taken care in the original base code generated with wsdl file. The code is pasted below which should take care the cleanup of the transport ( http sessions) but it is not as I am getting some "Timeout waiting for connection" exceptions.
> finally {
>                 if (_messageContext.getTransportOut() != null) {
>                       _messageContext.getTransportOut().getSender().cleanup(_messageContext);
>                 }
> Can you please suggest what is going wrong here.
> The code uses thread mechanism for each request. The code is attached for your reference.
> Let me know if more information is required.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Commented] (AXIS2-5251) org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection

Posted by "axis2user (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-5251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226803#comment-13226803 ] 

axis2user commented on AXIS2-5251:
----------------------------------

worked with 1.6.1
                
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5251
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5251
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.5
>         Environment: Solaris,UNIX,Java
>            Reporter: TEST
>            Priority: Critical
>              Labels: performance
>         Attachments: getCustomer_autogeneratedcode.rtf, getCustomer_client.rtf
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The client stub was working perfectly fine with lower load/requests. The same application when went live failed, giving some successful responses and some " Timeout waiting for connection" exceptions with heavy load/requests.
> The axis version used is axis2-1.5.5
> Please find the exception below -
> Feb 23, 2012 1:10:11 AM org.apache.axis2.transport.http.HTTPSender sendViaPost
> INFO: Unable to sendViaPost to url[http://97.16.143.78:8080/ua/soap]
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManage
> r.java:497)
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnect
> ionManager.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:557)
>         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:438)
>         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 org.apache.axis2.axis2userguide.QuantumUAStub.getSubscriber(QuantumUAStub.java:1340)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.getCustomer(AAA_Broadhop.java:1070)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.run(AAA_Broadhop.java:3446)
>         at java.lang.Thread.run(Thread.java:595)
> According to me, the above exception is taken care in the original base code generated with wsdl file. The code is pasted below which should take care the cleanup of the transport ( http sessions) but it is not as I am getting some "Timeout waiting for connection" exceptions.
> finally {
>                 if (_messageContext.getTransportOut() != null) {
>                       _messageContext.getTransportOut().getSender().cleanup(_messageContext);
>                 }
> Can you please suggest what is going wrong here.
> The code uses thread mechanism for each request. The code is attached for your reference.
> Let me know if more information is required.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] [Resolved] (AXIS2-5251) org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection

Posted by "Sagara Gunathunga (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-5251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sagara Gunathunga  resolved AXIS2-5251.
---------------------------------------

    Resolution: Not A Problem

Worked will 1.6.1 without any issue. 
                
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5251
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5251
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.5.5
>         Environment: Solaris,UNIX,Java
>            Reporter: TEST
>            Priority: Critical
>              Labels: performance
>         Attachments: getCustomer_autogeneratedcode.rtf, getCustomer_client.rtf
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The client stub was working perfectly fine with lower load/requests. The same application when went live failed, giving some successful responses and some " Timeout waiting for connection" exceptions with heavy load/requests.
> The axis version used is axis2-1.5.5
> Please find the exception below -
> Feb 23, 2012 1:10:11 AM org.apache.axis2.transport.http.HTTPSender sendViaPost
> INFO: Unable to sendViaPost to url[http://97.16.143.78:8080/ua/soap]
> org.apache.commons.httpclient.ConnectionPoolTimeoutException: Timeout waiting for connection
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManage
> r.java:497)
>         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnect
> ionManager.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:557)
>         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:438)
>         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 org.apache.axis2.axis2userguide.QuantumUAStub.getSubscriber(QuantumUAStub.java:1340)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.getCustomer(AAA_Broadhop.java:1070)
>         at org.apache.axis2.axis2userguide.SOExecutionThread.run(AAA_Broadhop.java:3446)
>         at java.lang.Thread.run(Thread.java:595)
> According to me, the above exception is taken care in the original base code generated with wsdl file. The code is pasted below which should take care the cleanup of the transport ( http sessions) but it is not as I am getting some "Timeout waiting for connection" exceptions.
> finally {
>                 if (_messageContext.getTransportOut() != null) {
>                       _messageContext.getTransportOut().getSender().cleanup(_messageContext);
>                 }
> Can you please suggest what is going wrong here.
> The code uses thread mechanism for each request. The code is attached for your reference.
> Let me know if more information is required.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org