I have 80 servlets on tomcat and each of them can have 5 five concurrent
requests to be processed as per design.
Tomcat Connectors specification says
maxSpareThreads
The maximum number of unused request processing threads that will be
allowed to exist until the thread pool starts stopping the unnecessary
threads. The default value is 50.
maxThreads
The maximum number of request processing threads to be created by this
Connector, which therefore determines the maximum number of simultaneous
requests that can be handled. If not specified, this attribute is set to
200.
80 * 5 = 400 thread I need for on the connector? ( So I can set
this to maxThreads = 400)
Each thread needs 2 MB per thread then
JVM heap size max = 400 * 2 MB (1GB) + 20 % buffer =
1GB
Does this seems a better assumptions for designing web server using
tomcat?
Thanks
-Venky