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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to