aspose file tools
The moose likes Servlets and the fly likes Configure the Maximum number of threads in a  servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Configure the Maximum number of threads in a  servlet" Watch "Configure the Maximum number of threads in a  servlet" New topic
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
    
    1
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Configure the Maximum number of threads in a servlet
 
Similar Threads
Some Clarification about servlet ??
Limiting thread count on the application level
Configure Maximum number of threads in a servlet
JVM's maximum number of Threads?
SingleThreadModel