LinuxCommandLibrary

jinfo

TLDR

Show JVM flags

$ jinfo [pid]
copy
Show system properties
$ jinfo -sysprops [pid]
copy
Show specific flag
$ jinfo -flag [HeapDumpOnOutOfMemoryError] [pid]
copy
Set flag dynamically
$ jinfo -flag +[HeapDumpOnOutOfMemoryError] [pid]
copy
Unset flag
$ jinfo -flag -[PrintGC] [pid]
copy
Print all flags
$ jinfo -flags [pid]
copy

SYNOPSIS

jinfo [options] pid

DESCRIPTION

jinfo prints and modifies Java VM configuration. It shows system properties and VM flags for running processes.
The tool can dynamically change manageable flags. Useful for tuning JVM behavior without restart.
jinfo shows JVM configuration.

PARAMETERS

PID

Target Java process ID.
-flags
Print VM flags.
-sysprops
Print system properties.
-flag NAME
Print or modify specific flag.
+FLAG
Enable boolean flag.
-FLAG
Disable boolean flag.
--help
Display help information.

CAVEATS

Part of JDK. Not all flags modifiable. May require same user as target process.

HISTORY

jinfo has been part of the JDK since Java 5, providing runtime configuration inspection and modification.

SEE ALSO

java(1), jps(1), jstack(1), jcmd(1)

Copied to clipboard