tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Tomcat threads
Date Wed, 03 Mar 2010 17:25:01 GMT
On 03/03/2010 17:21, Bharath Vasudevan wrote:
> Hi Charles,
> 
> Let me explain the scenario. When tomcat gets a request, it does a socket
> send to some other process to handle the request and then respond. This
> would happen fast. But assuming 20k client requests come in at the same
> time, the server would try to allocate 20k threads and handle it. Mostly the
> system would trash and go down.
> 
> But if it was to be handled gracefully, we can have the threads pick up the
> request throw it in a queue and let the worker threads work and respond. Let
> me know if I am missing something here.

Like the fact that Tomncat is open source and you could just look at the
source code for the various connectors and figure this all out for
yourself? You don't even have to read the source. The connectors
documentation covers this pretty well.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message