| Author |
Configure the Maximum number of threads in a servlet
|
Sajee Joseph
Ranch Hand
Joined: Jan 17, 2001
Posts: 200
|
|
Hello all, Is there is a means to Configure the Maximum number of threads in a servlet at a time in Tomcat. For instance i want all my servlets in Tomcat to have no more than 10 concurrent threads executing. How can i configure for that , if possible Thanks, Sajee
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
In the ../conf/server.xml file look for attributeslike: These numbers refer to the number of Threads processing requests. Bill
|
Java Resources at www.wbrogden.com
|
 |
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
|
|
|
Bear in mind, of course that this is only likely to limit the number of threads started by Tomcat itself. If an application starts its own threads they won't count toward this limit.
|
A Convergent Visionary ~ Frank's Punchbarrel Blog ~ LinkedIn profile
|
 |
Ken Boyd
Ranch Hand
Joined: Dec 10, 2003
Posts: 329
|
|
NO application level configuration as of I know. SCJP 1.4 SCWCD
|
SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1
|
 |
 |
|
|
subject: Configure the Maximum number of threads in a servlet
|
|
|