jinfo
TLDR
Show JVM flags
$ jinfo [pid]
Show system properties$ jinfo -sysprops [pid]
Show specific flag$ jinfo -flag [HeapDumpOnOutOfMemoryError] [pid]
Set flag dynamically$ jinfo -flag +[HeapDumpOnOutOfMemoryError] [pid]
Unset flag$ jinfo -flag -[PrintGC] [pid]
Print all flags$ jinfo -flags [pid]
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.


