-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 26
-
Component/s: hotspot
At VM exit, `-Xlog:cpu` now prints a table breaking down VM CPU usage into components.
Example:
```
[62.719s][info][cpu] === CPU time Statistics =============================================================
[62.719s][info][cpu] CPUs
[62.719s][info][cpu] s % utilized
[62.719s][info][cpu] Process
[62.719s][info][cpu] Total 410.2789 100.00 6.5
[62.719s][info][cpu] Garbage Collection 124.8134 30.42 2.0
[62.719s][info][cpu] GC Threads 124.5082 30.35 2.0
[62.719s][info][cpu] VM Thread 0.3052 0.07 0.0
[62.719s][info][cpu] =====================================================================================
```
In above example, the JVM process took 410.3s of CPU time, with on average 6.5 CPU cores utilized. Of that, 124.8s, that is around 30% of the time has been attributed to garbage collection.
Example:
```
[62.719s][info][cpu] === CPU time Statistics =============================================================
[62.719s][info][cpu] CPUs
[62.719s][info][cpu] s % utilized
[62.719s][info][cpu] Process
[62.719s][info][cpu] Total 410.2789 100.00 6.5
[62.719s][info][cpu] Garbage Collection 124.8134 30.42 2.0
[62.719s][info][cpu] GC Threads 124.5082 30.35 2.0
[62.719s][info][cpu] VM Thread 0.3052 0.07 0.0
[62.719s][info][cpu] =====================================================================================
```
In above example, the JVM process took 410.3s of CPU time, with on average 6.5 CPU cores utilized. Of that, 124.8s, that is around 30% of the time has been attributed to garbage collection.