tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hubert de Heer" <hdeh...@mirabeau.nl>
Subject RE: Tomcat running out of threads.
Date Thu, 15 Jan 2009 12:10:42 GMT
Hello,

We run a setup with 3 Apache servers with mod_jk (2.2.6 / 1.2.26) and 10
tomcat instances running on 5 servers (tomcat 5.5.26 / RHEL4).

We used the combination of connectionTimeout & connection_pool_timeout,
both set to 5min (connectionTimeout="300000",
connection_pool_timeout=300). But we still saw a lot of KeepAlive
connections on the tomcat side staying open (average thread count 400
per tomcat instance).

worker.properties:
worker.server1.type=ajp13
worker.server1.host=xxx.xxx.xxx.xxx
worker.server1.port=8009
worker.server1.socket_keepalive=1
worker.server1.socket_timeout=15
worker.server1.connect_timeout=10000
worker.server1.prepost_timeout=8000
worker.server1.lbfactor=1
worker.server1.connection_pool_timeout=300

server.xml:
<Connector port="8009" maxThreads="750" minSpareThreads="25"
  maxSpareThreads="75" connectionTimeout="300000"

This week we started to use JkOptions +DisableReuse and our current
thread busy count dropped to an average of 8.
So we will stick with the DisableReuse and find another use for 2 out of
5 tomcat servers.

Regards,

Hubert de Heer
-----Original Message-----
From: Bernardo Cabezas [mailto:bercab@bergantells.net] 
Sent: 12 January 2009 13:01
To: users@tomcat.apache.org
Subject: RE: Tomcat running out of threads.


Hello, 

According to tomcat documentation,  JkOptions +DisableReuse has some
performance penalty, because opens new connection for each request.

In my case, issue was solved by setting the param:
connectionTimeout
on the ajp13 <connector /> entry on tomcat's server.xml

Also look at docs for firstReadTimeout parameter.

Now mod_jk is using a pool of connectors, but tomcat expires old threads
on
the pool so issue was solved.

Regards,
Bernardo.


Mark Thomas-18 wrote:
> 
>> From: Hari Prasad [mailto:urshari7@yahoo.co.in]
>> 
>> hi.. i too have the same issue..
>> did anyone find solution?
> 
> 1. JkOptions +DisableReuse
> 2. Use correct timeouts and CPing/CPong
> 
> I'd go with option 1. YMMV.
> 
> Mark
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Tomcat-running-out-of-threads.-tp16812001p21413171
.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Mime
View raw message