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

PAYARA-1056 global thread pool statistics incorrect #1123

Conversation

Pandrex247
Copy link
Member

This pull request makes the global thread pool statistics much more complete, with it now counting the total maximum and minimum threads in all of the thread pools of a config.

It also edits the way the monitoring works so that it is more accurate by querying the JVM for the actual current number of threads, rather than relying upon events to alter internally stored values (which may have been missed or reset depending on when the monitor listener was registered).

Also renames the global thread pool stats from thread-pool to global-thread-pool-stats to make it more clear.

@smillidge
Copy link
Contributor

jenkins test please

Copy link
Contributor

@smillidge smillidge left a comment

Choose a reason for hiding this comment

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

I think your busy count will possibly be unreliable if you rely on the Runnable state. As opposed to capturing the dispatched from and returned to events.

@smillidge
Copy link
Contributor

jenkins test please

@payara-ci
Copy link
Contributor

One or more tests have failed

@michaelranaldo
Copy link
Contributor

jenkins test please

@payara-ci
Copy link
Contributor

All tests have passed

@smillidge smillidge merged commit 948c755 into payara:master Oct 8, 2016
@Pandrex247 Pandrex247 deleted the PAYARA-1056-Global-Thread-pool-statistics-incorrect branch November 17, 2016 09:21
@OndroMih OndroMih added this to the Payara 4.1.1.164 milestone Nov 21, 2016
lprimak pushed a commit to flowlogix/Payara that referenced this pull request Jul 5, 2017
* PAYARA-1056 Prevent < 0 values, and calculate global core and max thread count.

* PAYARA-1056 Change the get methods to query the JVM rather than their stored values. Also adds in copyright.

* PAYARA-1056 Remove whitespace edit

* PAYARA-1056 Make the Global thread pool busy and current thread counts more responsive and accurate.

* PAYARA-1056 Remove now redundant event monitoring methods, and other cleanup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants