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

Jetty 9.4.x 4105 4121 4122 queued thread pool #4146

Merged
merged 6 commits into from
Oct 2, 2019

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Oct 2, 2019

A combined PR for several QTP fixes:

gregw added 3 commits October 2, 2019 15:23
Shrink the QTP under steady load.

Signed-off-by: Greg Wilkins <gregw@webtide.com>
Always clear the interrupted status

Signed-off-by: Greg Wilkins <gregw@webtide.com>
ThreadFactory semantic

Signed-off-by: Greg Wilkins <gregw@webtide.com>
gregw added 2 commits October 2, 2019 16:24
Signed-off-by: Greg Wilkins <gregw@webtide.com>
Signed-off-by: Greg Wilkins <gregw@webtide.com>
Copy link
Contributor

@sbordet sbordet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than a minor improvement in the test, LGTM.


for (int i = 5; i-- > 0; )
{
Thread.sleep(250);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be timeout / 2 to clearly link the fact that you are sleeping a time that is long enough to idle some thread, but not all of them.

threads = tp.getThreads();
for (int i = 5; i-- > 0; )
{
Thread.sleep(250);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto, use timeout / 2.

Signed-off-by: Greg Wilkins <gregw@webtide.com>
@gregw gregw merged commit 813fcb7 into jetty-9.4.x Oct 2, 2019
@gregw gregw deleted the jetty-9.4.x-4105-4121-4122-QueuedThreadPool branch October 2, 2019 12:07
@joakime joakime added the Bug For general bugs on Jetty side label Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants