-XX:[+|-]HitachiVerboseGCPrintCause (Option to output the cause of GC)
- Organization of this page
Format
- -XX:+HitachiVerboseGCPrintCause
-
This option outputs the cause of GC to the end of extended verbosegc information.
- -XX:-HitachiVerboseGCPrintCause
-
This option outputs the extended verbosegc information in the normal format.
Description
Specify whether to output the cause of the GC.
- Default value
-
-
-XX:+HitachiVerboseGCPrintCause
-
- Prerequisite options
-
-
-XX:+HitachiVerboseGC
-
When the -XX:+HitachiCommaVerboseGC option is specified, the following cause numbers are output:
Cause number |
Cause |
Description |
Applicable to serial GC? |
Applicable to G1 GC? |
---|---|---|---|---|
0 |
ObjAllocFail |
In a case where G1 GC is not used, GC occurred because object allocation failed. In a case where G1 GC is used, GC occurred because the object allocation area could not be secured even by performing evacuation. |
Yes |
Yes |
1 |
System.gc |
GC occurred due to the invocation of the java.lang.System.gc method. |
Yes |
Yes |
3 |
DelayedGC |
The reserved GC is invoked by the JNI and JVMTI. |
Yes |
Yes |
4 |
JavaGC Command |
GC occurred by the JavaGC command |
Yes |
Yes |
6 |
JHeapProf Command |
GC occurred due to the jheapprof command. |
Yes |
-- |
8 |
EMReclaimFail |
There was a Java heap overflow because objects were moved to the Java heap due to the explicit release of the Explicit memory. |
Yes |
-- |
9 |
EMMigrateFail |
There was a Java heap overflow because objects were moved to the Java heap due to the automatic release of the Explicit memory. |
Yes |
-- |
10 |
JVMTIForceGC |
GC occurred due to the JVMTI function ForceGarbageCollection(). |
Yes |
Yes |
11 |
PromotionFail |
GC occurred due to promotion failure in copy GC. |
Yes |
-- |
12 |
EMJavaGC Command |
GC occurred due to the release of the Explicit memory block by the javagc command. |
Yes |
Yes |
13 |
EHeapProf Command |
GC occurred due to the eheapprof command. |
Yes |
Yes |
14 |
G1HumAllocFail |
GC occurred due to failure in object allocation to the Humongous area. |
-- |
Yes |
15 |
G1EvacuationPause |
GC occurred due to failure in object allocation. |
-- |
Yes |
16 |
Concurrent Marking |
CM processing that requires the application to stop occurred. |
-- |
Yes |
17 |
EvacuationFail |
GC occurred due to failure in evacuation. |
-- |
Yes |
18 |
MetaspaceAllocFail |
GC occurred due to failure in securing the metaspace area. |
Yes |
Yes |
19 |
LastMetaspaceGC |
The last GC that occurs before generating OutOfMemory for the metaspace area occurred. |
Yes |
Yes |
Examples of output
[VGC]Wed Mar 17 00:42:30 2004(Skip Full:0,Copy:0)[Full GC 149K->149K(1984K), 0.0786038 secs][DefNew::Eden: 264K->0K(512K)][DefNew::Survivor: 0K->63K(64K)][Tenured: 85K->149K(1408K)][Metaspace: 3634K(4492K, 4492K)->3634K(4492K, 4492K)][cause:System.gc]