Thanks Folks. On Wed, Mar 3, 2010 at 1:03 PM, Peter Crowther <peter.crowt...@melandra.com>wrote:
> On 3 March 2010 18:24, Bharath Vasudevan <bharath....@gmail.com> wrote: > > > Hmmm... > > > > "No, the server will allocate maxThreads request handlers; the other > > requests would sit in the TCP stack's queue (not in the JVM), up to the > > configured acceptCount value - which you can set as high as your OS > > allows." > > > > I was assuming that the tomcat main thread is going to pick it up from > the > > TCP stack and let the web server thread handle the request. Wont tomcat > > reject the request when max threads have been reached (since it would > have > > already picked up tcp layer)? > > > > No, because the container doesn't know when a thread might become > available. Serving content after a delay is considered better than not > serving content at all, so the requests are simply queued in the TCP stack. > > - Peter >