aspose file tools*
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 Spring in Action this week in the Spring 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Restricting request threads in Tomcat