Added a new Profiler for CPU/JVM CPU monitoring using (Sun/Oracle) Java7+ JMX Bean #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While the current CPU profiler focuses on breakdowns per thread, this new profiler obtains CPU load (in percentage) for the entire JVM and the system.
Here's the description taken from the modified README file:
JVM And System CPU Profiler:
JVMCPUProfiler
This profiler will record the JVM's and the overall system's CPU load, if the JVM is capable of providing this information.
Assuming you use the default prefix of
statsd-jvm-profiler
, the JVM CPU load metrics will be understatsd-jvm-profiler.cpu.jvm
,and the System CPU load wil be under
statsd-jvm-profiler.cpu.system
.The reported metrics will be percentages in the range of [0, 100] with 1 decimal precision.
CPU load metrics are sampled and reported once every 10 seconds.
Important notes:
profilers=JVMCPUProfiler
Even if you are using the right JVM, there's no guarantee this JMX bean will remain there in the future.
for more information.