tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Diego Castillo" <diego.casti...@inexbee.com>
Subject Forking high loaded servlet
Date Fri, 04 Jul 2003 13:05:37 GMT
Hi all,

I have a servlet that receives a heavy load. I would like to process
multiple requests in parallel in order to increase throughput.

Tomcat creates one single instance of the servlet. This is right
according to servlet specification paragraph 3.2, but it does not suit
my needs.

I have tried extending SingleThreadModel and Tomcat does create multiple
instances, but I get the exact same throughput.

I have also tried launching a new thread for handling HttpServletRequest
& HttpServletResponse, but as soon as the servlet exits service(), the
response output stream gets closed by Tomcat.

Is there any spec compliant strategy to increase the number of requests
per second that a servlet can handle?

Thanks in advance,


Diego


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


Mime
View raw message