• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Limit the number of requests Tomcat can accept

 
Mike Anna
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mike Anna
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf for your reply
the maximum number of simultaneous requests


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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic