Thats right, Chris!

Tried that and also multiple ways of enforcing the setting on the Kernel
level. Nothing helps!

Regards,
Nitish


On Thu, 31 Jul 2025 at 03:59, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> Nitish,
>
> On 7/30/25 10:03 AM, Nitish Chitta wrote:
> > Any suggestions from your side for Linux? Tried out multiple approaches
> but
> > none seem to work.
>
> The best you can do is set maxConnections to the number you want at the
> maximum and set acceptCount=0, but even then the OS may accept more
> connections.
>
> -chris
>
> > On Wed, 30 Jul 2025 at 13:49, Mark Thomas <ma...@apache.org> wrote:
> >
> >> On 30/07/2025 08:53, Nitish Chitta wrote:
> >>> Hello,
> >>> I want to enforce rejection of connections after the *maxConnections +
> >>> acceptCount *has been reached. This seems to be working fine with
> Windows
> >>> but, on Linux the limit is not getting applied and we do not see the
> >>> requests getting rejected.
> >>>
> >>> I am using embedded Tomcat 9 with Http11NioProtocol.
> >>>
> >>> Please advise.
> >>
> >> As per the docs for acceptCount:
> >>
> >> "The operating system may ignore this setting and use a different size
> >> for the queue."
> >>
> >> You'll need to look at the docs for your OS.
> >>
> >> Mark
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to