-
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 9.4.x 4105 4121 4122 queued thread pool #4146
Jetty 9.4.x 4105 4121 4122 queued thread pool #4146
Conversation
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>
Signed-off-by: Greg Wilkins <gregw@webtide.com>
There was a problem hiding this 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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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>
A combined PR for several QTP fixes:
newThread
call. 7b306d7