Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no of threads for servlet

 
Ankit Doshi
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Is there any limit on maximum no of threads that would be created for a servlet by default? (I'm using Tomcat 3.2) If yes, what is the value of this limit?
2. How can I change this limit in Tomcat 3.2? Is there any difference in the configuration of this limit for Tomcat 3 and Tomcat 4?
3. If I increase the maximum no of threads, what OS level limitation would I need to take care of? Like default socket close timeout or what else ...

Ankit
 
Mike Nightsky
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't know of such a thread limitation.
the only thing i know what is limitating you is the number of open processes that your os could handle. Linux before kernel 2.6, which you could adjust at compiling the kernel.

Mike
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Tomcat 4 there are configuration settings for the default and max number of request processing Threads - I think the same parameters were used in tomcat 3.
Look in server.xml for something like:
minProcessors="5" maxProcessors="75"
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic