tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <>
Subject Re: Tomcat limited connection to only 1
Date Fri, 19 Jan 2007 10:18:23 GMT
Can you describe with more details the "nothing will work" and your
intended behaviour. Explain how you tested configuration. According to
your configuration, the connector should work like this:

1) Serves exactly one request at a time (maxProcessors).
2) When another connection is attempted and your Http Thread is already
serving another request, it will queue that request and serve it later
(queue has a size of acceptCount)
3) If there is a third simultaneous connection attempt (the first being
served, the second waiting to be served), the server will refuse it (It
will behave to client as if server was down!!).

There is also the problem of 'keepAlive' request that might interfer in
your case, try to add |maxKeepAliveRequests="1"

Last but not least, limiting tomcat to 1 connection will behave
erratically in the browser's view, browsers tend to open several
connections at a time to same server, to get pictures, css, favicon in

|En l'instant précis du 01/19/07 10:32, Frankbl s'exprimait en ces termes:
> I will limited the connection for tomcat to one. I have tryed any
> configuration with the connector in server.xml. but nothing will work.
> Can anyone say what i must do to get the right parameters. here my last
> configuration string.
> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8080"
> maxThreads="1" minSpareThreads="1" maxSpareThreads="1" minProcessors="1"
> maxProcessors="1" enableLookups="false" acceptCount="1" debug="0"
> connectionTimeout="20000" useURIValidationHack="false"/>
> Thanks for your help.
> Frank

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message