Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Configure the Maximum number of threads in a servlet  RSS feed

 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the ../conf/server.xml file look for attributeslike:

These numbers refer to the number of Threads processing requests.
Bill
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ken Boyd
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NO application level configuration as of I know.
SCJP 1.4
SCWCD
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!