Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat 6 going down after reaching its maximum number of threads

Our Tomcat 6.0.29 goes down after reaching its maximum number of Threads. I would really appreciate any help with it because it is a production server.

Here is part of the catalina.log file:

INFO: Maximum number of threads (600) created for connector with address null and port 80
Mar 8, 2011 11:19:37 AM org.apache.coyote.http11.Http11Protocol pause

INFO: Pausing Coyote HTTP/1.1 on http-80
Mar 8, 2011 11:19:38 AM org.apache.catalina.core.StandardService stop

INFO: Stopping service Catalina
Mar 8, 2011 11:19:38 AM org.apache.catalina.core.StandardWrapper unload

INFO: Waiting for 8 instance(s) to be deallocated
like image 707
user650585 Avatar asked Mar 08 '11 22:03

user650585


2 Answers

Take a Thread Dump to see what is holding onto all your threads. The stacktrace for each thread will be an indication of your problem more then the catalina.out error was.

Windows

on the console window press ctrl + break

Unix

on the command line enter: kill -3 <pid>

These can be safely taken on a running production instance.

like image 107
Sean Avatar answered Sep 28 '22 05:09

Sean


It looks like your Executor is set to 500 or 600 threads. If each thread usually accesses a DB connection, do you have the dbcp pool set to the same amount or more?

You might also check your dbcp pool configuration

like image 24
pd40 Avatar answered Sep 28 '22 07:09

pd40