PDA

View Full Version : Java peak live thread


shan
15-06-2010, 06:14
Hi All,

I'm a linux administrator and have recently started managing some tomcat applications. I'd like to know where the settings to limit 'peak live thread' is done in tomcat/Java.

Regards,
Shan

kjkoster
15-06-2010, 20:38
Dear Shan,

There is no way to limit the number of threads in a JVM. Or rather, it is limited by your memory configuration. :)

What you can do is limit the number of HTTP worker threads. Check server.xml and look for the relevant Connector element and set the maxThreads attribute to the value that suits your needs.

If that does not resolve your problem, can you provide some more details? Like why you need to limit the number of live threads?

Kees Jan