tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Miehs <and...@2sheds.de>
Subject Re: How can i configure tomcat to avoid threads error in tomcat
Date Tue, 19 Jun 2007 13:35:48 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 19/06/2007, at 3:25 PM, Prashant Thakkar wrote:
> I am frequently getting this error in tomcat which stops my tomcat  
> service.
> Pl help me its urgent and costing my service as well:
>
> I am getting bellow error in my catalina logs:
> Jun 19, 2007 5:55:44 PM org.apache.tomcat.util.threads.ThreadPool  
> logFull
> SEVERE: All threads (250) are currently busy, waiting. Increase  
> maxThreads
> (250) or check the servlet status

Hi Prashant,

You may want to increase your 'maxThreads' setting in conf/server.xml

     <Connector port="8080" maxHttpHeaderSize="8192"
                maxThreads="150" minSpareThreads="25"  
maxSpareThreads="75"
                enableLookups="false" redirectPort="8443"  
acceptCount="100"
                connectionTimeout="20000" disableUploadTimeout="true" />

You may also want to look at why you have 250 connections open at  
once....

Based on the question, It sounds like you have an infinite loop  
somewhere in your
application rather than a lot of traffic, causing the threads to lock  
up...

Cheers

Andrew

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFGd9u0W126qUNSzvURAiDKAJ4ujmWo8Mnd8jHGQdZnEqBCcuIaGQCfVD30
oa6A6IWqNscwAtejrIvf0tM=
=VNFN
-----END PGP SIGNATURE-----

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


Mime
View raw message