tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Bremford" <mi...@paperx.com>
Subject RE: TIME_WAIT socket buildup problem in Tomcat
Date Fri, 27 Oct 2000 15:32:32 GMT
Tomcat is multithreaded - ie. lots of connections -> one process, while
Apache forks lots of processes, and when a process dies it takes it's waited
connections too. Just a different design.

Unless it's causing you problems I wouldn't worry about it.


Cheers... Mike

> -----Original Message-----
> From: Martin Holmgren [mailto:martinh@geosition.com]
> Sent: 27 October 2000 16:39
> To: 'tomcat-user@jakarta.apache.org'
> Subject: TIME_WAIT socket buildup problem in Tomcat
>
>
> Hi!
>
> I have noticed that Tomcat leaves a new TCP-socket in the
> TIME_WAIT-state
> for quite a while after each request to a servlet or jsp.
> When I send many
> requests to my server, this causes a massive buildup of
> sockets that are
> "blocked" for quite some time, until the server finally goes
> down, when
> the number of open sockets exceeds its max value.
>
> How can I work around this? I've compared with how Apache
> serves static
> pages, and it never leaves any sockets in TIME_WAIT. Is there
> a reason for
> that difference, or is it just that Apache currently has a
> more elegant
> solution to the problem?
>
> Thanks in advance!
>
> /Martin Holmgren
>
>
>
>
>


Mime
View raw message