I was wondering if some one could please let me know if there is a way I can limit tomcat from accepting the number of requests it can cater ?
I did google for it and it gave me replies where apache was guarding tomcat and that the number of requests can be limited easily on apache. However I am looking to do this on tomcat.
Joined: Mar 22, 2005
Yes, that's possible. Check the conf/server.xml file - it has maxThreads attributes for each Connector. Those limit the number of request processing threads Tomcat will spawn, and thus the maximum number of simultaneous requests Tomcat will work on.