wood burning stoves*
The moose likes Tomcat and the fly likes Tomcat6 ThreadPool questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat6 ThreadPool questions" Watch "Tomcat6 ThreadPool questions" New topic
Author

Tomcat6 ThreadPool questions

Lee Lowder
Greenhorn

Joined: Apr 05, 2012
Posts: 6

I currently have a tomcat 6 setup, and I am trying to understand how it handles the threadpools.

I have an executor defined, and I have an AJP connector that uses it.

I have specified a minSpareThreads in the executor, but when I look at the thread pool info in psi-Probe it does not seem to be behaving as I expect it to.

I know that in tomcat5, you could specify a minSpareThreads and a maxSpareThreads and then tomcat would start minSpareThreads and create up to maxThreads as needed, then keep the number of spare, idle threads somewhere between minSpareThreads and maxSpareThreads.

I also know that in tomcat6, this functionality was moved to executors and the maxSpareThreads attribute was removed.

I have minSpareThreads set to 30, but when I watch the server in psi-Probe I see that the current number of threads is usually equal to the number of busy threads or 2-3 higher, and often drops down to 2-3 total when the server is idle.

Am I missing some config option, or is my understanding of how this should work flawed?

Thank you for your assistance in this.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat6 ThreadPool questions
 
Similar Threads
Tomcat5.5
Tomcat 6.0.20 Threads Not closing
know all the context names within the web container
Optimizing Tomcat for heavy load
Tomcat performance problem with increased no of threads