tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frankbl <>
Subject Re: Tomcat limited connection to only 1
Date Fri, 19 Jan 2007 13:04:58 GMT

ok. i know. nothing will be work is not correct.
i mean. i can allways connect 4 until 6 times at the same time. I have not
tested more. i have open 3 session on my local pc with localhost and 3
session on a remote pc with the ip address.

what i need is. that i can only connect with localhost or ip address with 2
sessions. My application open two browser windows allways. for me this is 2
connection and only 1 sessions at the same time. the first browser window
shows only the company banner. from here i start the second browser window
with my sesseion where i work. Here i get my session no.

The application is a local installation on a pc for running a spareparts
catalogue. here we have the same layout and funcitionality as our Web

The application comes from a external company and i'am serv this here by us.
i'am not the big profi with tomcat and that's my problem.  At first i have
ask the external company. but he has no reason. i must pay when we wont
i would rather spend the time for lern more about tomcat and to give better
service to our customer.

ok, at last. I have try the parameter maxkeepaliverequest. But the same. i
can connect with the same result as before.


David Delbecq wrote:
> 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
> parallel.
> |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 this message in context:
Sent from the Tomcat - User mailing list archive at

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

View raw message