*
The moose likes Tomcat and the fly likes Restricting request threads in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Restricting request threads in Tomcat" Watch "Restricting request threads in Tomcat" New topic
Author

Restricting request threads in Tomcat

Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
For each request a thread is created in Tomcat or any other multithreaded server.I want to know that ,is there is any way I can restrict the maximum number of threads that are allowed at a time by using some configuration in Tomcat.


Rahul Bhattacharjee
LinkedIn - Blog
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Moved from servlets to Tomcat.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Look at the maxThreads attribute of the HTTP Connector:
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
 
jQuery in Action, 2nd edition
 
subject: Restricting request threads in Tomcat
 
Similar Threads
Tomcat crashing
number of users that can access site parally
[Axis2][Tomcat]Thread Pool
Tomcat Issue
communication problem between IIS and tomcat