-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jetty ignores OutOfMemory #3196
Comments
If you get an I don't understand what do you expect that Jetty did instead. Even if we leave that error unwind the stack, it will be likely on a Jetty thread, so the Jetty thread pool will log the error and nothing can be done by your application. |
The Application is wrapped by tanuki service wrapper which can restart the application using wrapper.filter.trigger by monitoring the console output of the JVM. Seems that it did not trigger because the log was dumped to the application log instead of console. |
Those Jetty issues have been fixed, so upgrade Jetty to the latest version. Jetty logging can delegate to other logging frameworks that are very flexible in terms of where they write logs, so it's just a matter of configuring the logging framework you use properly. |
Thanks. Jetty info logs are dumped to the console but a different file (defined in jetty-logging.xml) which was not scanned by the tanuki wrapper. |
Closing as resolved. |
Tested with jetty-9.4.10.v20180503.
OutOfMemoryError did not trigger application restart due to wrong jetty error handling:
where
org.eclipse.jetty.client.ResponseNotifier
catches with Throwable and only logs error.Same happens in:
where
org.eclipse.jetty.server.HttpChannel
catches with Error and only logs error.In both cases it infinitely logs error without crashing the server.
The text was updated successfully, but these errors were encountered: