Skip to content
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

New metric: selected/total SocketChannels #4782

Closed
sbordet opened this issue Apr 16, 2020 · 2 comments
Closed

New metric: selected/total SocketChannels #4782

sbordet opened this issue Apr 16, 2020 · 2 comments
Labels
Stale For auto-closed stale issues and pull requests

Comments

@sbordet
Copy link
Contributor

sbordet commented Apr 16, 2020

Jetty version
9.4.x

Description
Would be interesting to know the ratio of selected/total SelectionKeys for every select operation.

Chatty protocols such as CometD could have a very high ratio that is unusual in web site applications.

A high ratio could be an indication that a larger number of selectors needs to be configured.

@gregw thoughts?

@stale
Copy link

stale bot commented Jun 2, 2021

This issue has been automatically marked as stale because it has been a full year without activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale For auto-closed stale issues and pull requests label Jun 2, 2021
@sbordet
Copy link
Contributor Author

sbordet commented Jun 3, 2021

This has been implemented in the context of #5787.
In particular, there is now a ManagedSelector.getAverageSelectedKeys() that returns the average number of selected keys for each select().

@sbordet sbordet closed this as completed Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale For auto-closed stale issues and pull requests
Projects
None yet
Development

No branches or pull requests

1 participant