Java Reference
In-Depth Information
Flag
What it
does
When to use it
See also
-XX:PermSize= N (JDK 7 only) Sets the
initial size
of the per-
mgen.
For applications that use a lot of classes, increase
this from the default.
Sizing Per-
mgen and
Metaspace
-XX:MaxPermSize= N (JDK 7
only)
Sets the
maximum
size of the
permgen.
For applications that use a lot of classes, increase
this from the default.
Sizing Per-
mgen and
Metaspace
-XX:MetaspaceSize= N (JDK 8
only)
Sets the
initial size
of the
metaspace.
For applications that use a lot of classes, increase
this from the default.
Sizing Per-
mgen and
Metaspace
-XX:MaxMetaspaceSize= N (JDK
8 only)
Sets the
maximum
size of the
metaspace.
Lower this number to limit the amount of native
space used by class metadata.
Sizing Per-
mgen and
Metaspace
Sets the
number of
threads
used by the
garbage
collectors.
Lower this value on systems running many JVMs.
Consider increasing it for JVMs with very large
heaps on very large systems.
Controlling
Parallelism
-XX:ParallelGCThreads= N
Enables ba-
sic GC log-
ging.
GC logging should always be enabled, but other,
more detailed logs are generally better.
GC Tools
-verbose:gc
Directs the
GC log to a
special file
rather than
standard
output.
Always, the better to preserve the information in
the log.
GC Tools
-Xloggc: <path>
Enables ba-
sic GC log-
ging.
GC logging should always be enabled, but other,
more detailed logs are generally better.
GC Tools
-XX:+PrintGC
Search WWH ::




Custom Search