Java Reference
In-Depth Information
Flag
What it
does
When to use it
See also
Enables de-
tailed GC
logging.
Always, even in production (the logging overhead
is minimal).
GC Tools
-XX:+PrintGCDetails
Prints a rel-
ative
timestamp
for each
entry in the
GC log.
Always, unless datestamps are enabled.
GC Tools
-XX:+PrintGCTimeStamps
Prints a
time-of-day
stamp for
each entry
in the GC
log.
Has slightly more overhead than timestamps, but
may be easier to process.
GC Tools
-XX:+PrintGCDateStamps
Prints in-
formation
about soft
and weak
reference
processing
during GC.
If the program uses a lot of those references, add
this flag to determine their effect on the GC over-
head.
Weak, Soft,
and Other
References
-XX:+PrintReferenceGC
Enables ro-
tations of
the GC log
to conserve
file space.
In production systems that run for weeks at a time
when the GC logs can be expected to consume a
lot of space.
GC Tools
-XX:+UseGCLogFileRotation
When log-
file rotation
is enabled,
indicates
the number
of logfiles
to retain.
In production systems that run for weeks at a time
when the GC logs can be expected to consume a
lot of space.
GC Tools
-XX:NumberOfGCLogFiles= N
When log-
file rotation
is enabled,
In production systems that run for weeks at a time
when the GC logs can be expected to consume a
lot of space.
GC Tools
-XX:GCLogFileSize= N
Search WWH ::




Custom Search