OS Manuals

/usr/lib/jvm/java-17-openjdk/bin/jstat

From openjdk-17 17.0.21.0.3-r0 (os), captured 2026-11-05 by running jstat --help (exit 0). permalink

Usage: jstat --help|-options
       jstat -<option> [-t] [-h<lines>] <vmid> [<interval> [<count>]]

Definitions:
  <option>      An option reported by the -options option
  <vmid>        Virtual Machine Identifier. A vmid takes the following form:
                     <lvmid>[@<hostname>[:<port>]]
                Where <lvmid> is the local vm identifier for the target
                Java virtual machine, typically a process id; <hostname> is
                the name of the host running the target Java virtual machine;
                and <port> is the port number for the rmiregistry on the
                target host. See the jvmstat documentation for a more complete
                description of the Virtual Machine Identifier.
  <lines>       Number of samples between header lines.
  <interval>    Sampling interval. The following forms are allowed:
                    <n>["ms"|"s"]
                Where <n> is an integer and the suffix specifies the units as
                milliseconds("ms") or seconds("s"). The default units are "ms".
  <count>       Number of samples to take before terminating.
  -J<flag>      Pass <flag> directly to the runtime system.
  -? -h --help  Prints this help message.
  -help         Prints this help message.
Options (18)
OptionDescriptionSource
-J flagPass <flag> directly to the runtime system.help
-? -hPrints this help message.help
-helpPrints this help message.help + man
-optionsDisplays a list of static options. (in the manual page but not in --help)man
-statOptionDetermines the statistics information that the jstat command displays. (in the manual page but not in --help)man
-JjavaOptionPasses javaOption to the Java application launcher. (in the manual page but not in --help)man
-class optionClass loader statistics. (in the manual page but not in --help)man
-compiler optionJava HotSpot VM Just-in-Time compiler statistics. (in the manual page but not in --help)man
-gc optionGarbage collected heap statistics. (in the manual page but not in --help)man
-gccapacity optionMemory pool generation and space capacities. (in the manual page but not in --help)man
-gccause optionThis option displays the same summary of garbage collection statistics as the -gcutil option, but includes the causes of the last garbage collection event and (when applicable), the current garbage… (in the manual page but not in --help)man
-gcnew optionNew generation statistics. (in the manual page but not in --help)man
-gcnewcapacity optionNew generation space size statistics. (in the manual page but not in --help)man
-gcold optionOld generation size statistics. (in the manual page but not in --help)man
-gcoldcapacity optionOld generation statistics. (in the manual page but not in --help)man
-gcmetacapacity optionMetaspace size statistics. (in the manual page but not in --help)man
-gcutil optionSummary of garbage collection statistics. (in the manual page but not in --help)man
-printcompilation optionJava HotSpot VM compiler method statistics. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.