tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: How to limit the number of concurrent client connections?
Date Tue, 15 Jan 2013 21:28:44 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hermes,

On 1/15/13 2:53 PM, Hermes Flying wrote:
> How can I use tomcat's number of connectors and max accept count
> in order to place a limit in my clients concurrent requests? For
> example if I set the connectors to be 400 then 400 connectors
> threads accept 400 concurrent client connections/requests right?
> The rest i.e. above 400 are queued correct? How can I make it that
> after the 400 connections the rest are rejected? I.e. the 401
> client attempt will be rejected (client will get a
> network/connection failure)?

The best you can do is set acceptCount="0" but I've heard that
sometimes the OS treats the accept count as more of a "guideline" than
a law, and you may still end up with a non-zero TCP queue length.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlD1ygwACgkQ9CaO5/Lv0PB0bgCgplcA5/PrTC/NpQjNududuHWS
jqgAni3a8PDzePc97O6T8wUwHdNd9057
=3G4y
-----END PGP SIGNATURE-----

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


Mime
View raw message