tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mladen.t...@jboss.com>
Subject Re: number of established connections keep growing
Date Fri, 24 Feb 2006 17:48:26 GMT
Victor Granic wrote:
> Hello!
> 
> I'm running Tomcat 5.0.28 on a Windows 2000 server.  Tomcat is wrapped
> using the Java Service Wrapper.  All connections to the Tomcat service
> come from a proxy running apache+mod_jk on linux.
> 
> Problem:  The number of ESTABLISHED connections continue to grow on the
> Windows server until users are unable to access the web site.


This is because mod_jk uses constant connection pool, and once
when the connection is established it stays open for the
server lifetime.
The reason why connections are growing is because the Apache will
create up to MaxClient connections.
Also if you have a firewall between mod_jk and Tomcat that tends
to cut the inactive connections, the Tomcat connection will be
half-closed. Apache will reconnect and your connection count will
rise.

The solution is to set the connectionTimeout in server.xml
that will close the inactive connections. This number should be
large, like 10 ... 30 minutes, so that performance doesn't suffer.

Regards,
Mladen.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message