Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Limiting number of accepted sockets.

Hi,

On Thu, Aug 1, 2019 at 10:45 PM Sean McCauliff <sean.mccauliff@xxxxxxxxx> wrote:
>
> Recently I had several Jetty processes die from OOM because the memory overhead from the number of accepted TLS connections was more than 1G.  Jetty seems to have an accept rate limiting configuration but no absolute limit on the number of accepted sockets.  Is this correct?

No, Jetty has a way to limit connections:
https://www.eclipse.org/jetty/documentation/current/configuring-connectors.html#_limiting_connections

Note that keeping around so many connections that result in a OOME may
be due to a too large idle timeout (otherwise Jetty will close idle
connections).

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top