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 Juha Kononen <Ju...@savonia-amk.fi> on 2005/08/22 12:50:57 UTC
Why Axis opens a new socket connection everytime?
Hi, I'm using Axis 1.2.1 Final and it has worked great until now. But
there is something confusing about the way Axis opens a connection to
the server (Tomcat 5.5.9).
For example, if I call the server-side by executing the
invoke(SOAPEnvelope) method 50 times, Axis opens 50 new ports (I can
check it with the netstat program in XP) to my server without reusing
the older socket connections. Each one of these ports gets a TIMEOUT
value (so I guess it tells that the socket connection opened is awaiting
somebody to reuse its connection).
Tell me if I'm wrong, but it feels somehow odd if I have, for example,
500 ports opened at the same time. Isn't that a little bit expensive? Or
is it in Axis by default? :)
Juha
Re: Why Axis opens a new socket connection everytime?
Posted by Davanum Srinivas <da...@gmail.com>.
Use CommonsHTTPSender (check email archives and wiki)
On 8/22/05, Juha Kononen <Ju...@savonia-amk.fi> wrote:
> Hi, I'm using Axis 1.2.1 Final and it has worked great until now. But
> there is something confusing about the way Axis opens a connection to
> the server (Tomcat 5.5.9).
> For example, if I call the server-side by executing the
> invoke(SOAPEnvelope) method 50 times, Axis opens 50 new ports (I can
> check it with the netstat program in XP) to my server without reusing
> the older socket connections. Each one of these ports gets a TIMEOUT
> value (so I guess it tells that the socket connection opened is awaiting
> somebody to reuse its connection).
> Tell me if I'm wrong, but it feels somehow odd if I have, for example,
> 500 ports opened at the same time. Isn't that a little bit expensive? Or
> is it in Axis by default? :)
>
> Juha
>
--
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform