-
Notifications
You must be signed in to change notification settings - Fork 34
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
XP becomes unresponsive after use of management endpoint #8866
Comments
This was observed in the operator. Here is a typical communication between the operator and XP:
Replicating with curl: $ curl -N \
-H 'Accept: text/event-stream' \
-H 'Authorization: Basic c3U6c2Nvb2JlZG9v' \
-H 'Accept-Encoding: gzip' \
-H 'Connection: Keep-Alive' \
http://all.my-namespace.svc.cluster.local:4848/app/events
|
It appears that JaxRs wrapper uses old Servlet 2.5 "async simulator" that keeps holding a Jetty thread even when client disconnects from events stream. A attempt to send a single event to all those disconnected clients would free all stuck threads, but if events are rare, potentially all jetty threads get occupied. Threads are no longer occupied by SSE requests when native "Servlet 3.0 Async" is in use. |
Thread dump shows that resteasy locks all threads
It happens when SSE is used extensively
The text was updated successfully, but these errors were encountered: