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.
thanks
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35232
7
posted
0
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.
I know that it means the maximum no. of requests it can process at a time. That would also mean, that, THAT is the maximum no. of requests it will accept anytime right ?
thanks again
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35232
7
posted
0
I'm not sure if connections beyond the max are rejected, or put into a queue for eventual servicing. You'd have to consult the source for that.