tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remy Maucherat" <>
Subject Re: Rephrased: Maximum number of simultaneous HTTP connections
Date Mon, 03 Apr 2006 11:03:37 GMT
On 4/3/06, Rajeev Jha <> wrote:
> Tp wrote:
> > And there seems to be no workaround, because the connection will close
> > after the doGet() and doPost() method finishes (is that actually
> > true?). So, the only way to keep 3000 simultaneous connections is to
> > keep 3000 of those methods from returning, wehich means keeping 3000
> > threads busy.
> You can try jetty 6 also [ if you are not very particular about using
> tomcat ] . Jetty 6 Continuations can help you do a suspend/resume  of
> request. so a thread is not blocked due to  idle wait and you can
> multiplex more connections on less threads.

The hype friendly "continuation" name has no business being associated
with this particular feature, since the said feature is not
continuations (which is a fancy - and IMO forward thinking and
actually useful - programming model for implementing the often seen
multiple HTML form "wizard" style process - and of course, which is
going to use one HTTP request per form, as usual), and is also quite

If all you need is to reinvoke the service method once there's more
input data available, you can just as easily use multiple small
requests (over a kept alive connection), which is equally cheap in
terms of processing and allows not breaking the HTTP and Servlet API

The real problem, and the actually useful capability (especially for a
big chat room like is the case here), is to be able to output data
asynchronously (= without polling).

Rémy Maucherat
Developer & Consultant
JBoss Inc

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message