You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by V D <st...@drexel.edu> on 2004/12/15 05:17:00 UTC
Server refuse connection with many TIME_WAIT
I have an Axis service that runs under Tomcat 5.5.4. I use gSoap client
to connect to the server. After about 3960 requests from the clients,
the Tomcat stops accepting connection. I have to wait for serveral
minutes for it to accept connections again.
This is under MS Windows XP system. Using the command line:
netstat -a<enter>
I have about 5000 TIMEWAIT:
TCP vd:5000 localhost:http TIME_WAIT
Looking through TcpMonitor, both the client and server send in close
message:
CLIENT MESSAGE:
POST /axis/services/TestService HTTP/1.1
Host: 127.0.0.1:82
User-Agent: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Content-Length: 552
Connection: close
SOAPAction: ""
....
SERVER MESSAGE:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Date: Wed, 15 Dec 2004 04:04:52 GMT
Connection: close
What's going on? Is there any flag I can set in Tomcat to close these
TIMEWAIT connections?
Looking at the clients's memory foot print, the memory does not go up at
all after all these connections.
The strange thing is this: using Java's client to repeatedly request
the server for many thousand times, and I don't have any problem with
the server. Using the command line "netstat -a", and I still see many
TIMEWAIT.
Could this have something to do with gSoap, not Tomcat?
Thanks,
V D
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Server refuse connection with many TIME_WAIT
Posted by V D <st...@drexel.edu>.
Thank you for the reply. I try to set |connectionTimeout to 1 seconds
(down from default of 60 seconds), however, the result is almost
identical. After about 3900-4000 request, the server refuses all requests.|
FRANCOIS Dufour wrote:
> try to lower your conection time out under catalina policy
> hope it help
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Server refuse connection with many TIME_WAIT
Posted by FRANCOIS Dufour <fr...@hotmail.com>.
try to lower your conection time out under catalina policy
hope it help
friendly
francoisdufour@hotmail.com
administrateur http://entre-nous.qc.tc
>From: V D <st...@drexel.edu>
>Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
>To: tomcat-user@jakarta.apache.org
>Subject: Server refuse connection with many TIME_WAIT
>Date: Tue, 14 Dec 2004 23:17:00 -0500
>
>
>I have an Axis service that runs under Tomcat 5.5.4. I use gSoap client to
>connect to the server. After about 3960 requests from the clients, the
>Tomcat stops accepting connection. I have to wait for serveral minutes for
>it to accept connections again.
>
>This is under MS Windows XP system. Using the command line:
>
>netstat -a<enter>
>
>I have about 5000 TIMEWAIT:
>
>TCP vd:5000 localhost:http TIME_WAIT
>
>Looking through TcpMonitor, both the client and server send in close
>message:
>
>CLIENT MESSAGE:
>
>POST /axis/services/TestService HTTP/1.1
>Host: 127.0.0.1:82
>User-Agent: gSOAP/2.7
>Content-Type: text/xml; charset=utf-8
>Content-Length: 552
>Connection: close
>SOAPAction: ""
>
>....
>
>SERVER MESSAGE:
>
>HTTP/1.1 200 OK
>Server: Apache-Coyote/1.1
>Content-Type: text/xml;charset=utf-8
>Date: Wed, 15 Dec 2004 04:04:52 GMT
>Connection: close
>
>What's going on? Is there any flag I can set in Tomcat to close these
>TIMEWAIT connections?
>
>Looking at the clients's memory foot print, the memory does not go up at
>all after all these connections.
>The strange thing is this: using Java's client to repeatedly request the
>server for many thousand times, and I don't have any problem with the
>server. Using the command line "netstat -a", and I still see many
>TIMEWAIT.
>
>Could this have something to do with gSoap, not Tomcat?
>
>Thanks,
>
>V D
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org