You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jayashree Krishnamoorthy <js...@yahoo.com> on 2009/04/28 22:34:34 UTC

Fw: [Axis2] single wsdl, multiple operations -- tomcat running out of thread


--- On Tue, 4/28/09, Jay <js...@yahoo.com> wrote:


From: Jayashree Krishnamoorthy <js...@yahoo.com>
Subject: [Axis2] single wsdl, multiple operations -- tomcat running out of thread
To: axis-user@ws.apache.org
Date: Tuesday, April 28, 2009, 4:05 PM






Hi

I have 2 operations in a single wsdl and the client code is as follows:

this.port = new HelloWorldStub();
ServiceClient serviceClient = port._getServiceClient();
Options options = serviceClient.getOptions();
if ( this.url != null )
{
        EndpointReference epr = new EndpointReference( this.url );
        options.setTo( epr );
}
options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE);

public sayHello1()
{
    port.sayHello1();
}
public sayHello2()
{
    port.sayHello2();
}
During load test, Address_Already_Bound error was getting thrown. So the
Reuse Option was set. However now, the tomcat runs of thread and the thread
dump has the following message:

"http-80-Processor36" prio=5 tid=63 @@@@ WAITING
at java.lang.Object.wait(Native Method)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:509)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:394)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:152)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
at com.xxx.hello.HelloServiceStub.changePassword(HelloServiceStub.java:288)

I am really clueless about what the issue is. Read through different forums
and link and got confused. Greatly appreciate help and this issue is
happening in production.
:-((

Product Stack: Axis2 1.3, Tomcat 5.5, Java 5

Thanks in advance
Jay