OS Manuals

/usr/lib/jvm/java-1.8-amazon-corretto/bin/jhat

Amazon Corretto 8 is a no-cost, multi-platform, production-ready distribution of OpenJDK 8

From corretto-8 8.512.09.1-r1 (enterprise-packages), captured 2026-11-08 by running jhat -help (exit 1). permalink

Usage:  jhat [-stack <bool>] [-refs <bool>] [-port <port>] [-baseline <file>] [-debug <int>] [-version] [-h|-help] <file>

	-J<flag>          Pass <flag> directly to the runtime system. For
			  example, -J-mx512m to use a maximum heap size of 512MB
	-stack false:     Turn off tracking object allocation call stack.
	-refs false:      Turn off tracking of references to objects
	-port <port>:     Set the port for the HTTP server.  Defaults to 7000
	-exclude <file>:  Specify a file that lists data members that should
			  be excluded from the reachableFrom query.
	-baseline <file>: Specify a baseline object dump.  Objects in
			  both heap dumps with the same ID and same class will
			  be marked as not being "new".
	-debug <int>:     Set debug level.
			    0:  No debug output
			    1:  Debug hprof file parsing
			    2:  Debug hprof file parsing, no server
	-version          Report version number
	-h|-help          Print this help and exit
	<file>            The file to read

For a dump file that contains multiple heap dumps,
you may specify which dump in the file
by appending "#<number>" to the file name, i.e. "foo.hprof#3".

All boolean options default to "true"
Options (11)
OptionDescriptionSource
-J flagPass <flag> directly to the runtime system.help
-stack false:Turns off tracking object allocation call stack.help + man
-refs false:Turns off tracking of references to objects.help + man
-port port>:Sets the port for the jhat HTTP server.help + man
-exclude file>:Specifies a file that lists data members that should be excluded from the reachable objects query.help + man
-baseline file>:Objects in both heap dumps with the same ID and same class will be marked as not being "new".help + man
-debug int>:Sets the debug level for this tool.help + man
-versionReports the release number and exitshelp + man
-hDsiplays a help message and exits. (in the manual page but not in --help)man
-helpDisplays a help message and exits. (in the manual page but not in --help)man
-JflagPasses flag to the Java Virtual Machine on which the jhat command is running. (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.