-
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
Improve SessionTracker scalability #5108
Comments
IIRC, The SessionTracker has a few purposes.
While 1 and 2 can be solved in ways that don't need to use the Collections objects, the need in point 3 means the the ability to at least return a |
@joakime do we only need it for the JSR implementation, or also the Jetty APIs have a similar method? We can use a more efficient data structure as |
@sbordet the Jetty WebSocket API does have similar methods as well. |
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…zed blocks Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…Scalability Issue #5108 - improve scalability of WebSocket SessionTrackers
PR #5109 fixes the scalability issue by using a set derived from |
Jetty version
9.4.26 and later
Description
SessionTracker
holds a list of session in aCOWAList
.Unfortunately it's a singleton-like object, so if an application opens and closes WebSocket connections at a high rate, it becomes a bottleneck because of lock contention.
The text was updated successfully, but these errors were encountered: