You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default behavior for jetty when used in spring boot is for the
JettyEmbeddedServletContainerFactory to create an Jetty Server with an unbounded
QueuedThreadPool.
This means that under any kind of load where the input request rates exceeds the servers ability to process that the JVM will eventually OOM no matter what.
Essentially, this is a guaranteed breakage by default.
Instead it would be better to replace the default BlockingQueue inside the QueuedThreadPool with a bounded queue, as is advised in the Jetty documentation.
This changes the default behavior to load shed (fail fast) and is far more production ready out of the box.