Skip to content

Instantly share code, notes, and snippets.

@ufuk
Created December 6, 2022 14:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ufuk/549fb6c85f1d681b62634f23341e3bc3 to your computer and use it in GitHub Desktop.
Save ufuk/549fb6c85f1d681b62634f23341e3bc3 to your computer and use it in GitHub Desktop.
Display a Java process' system properties or flags (https://docs.oracle.com/en/java/javase/17/docs/specs/man/jcmd.html)
# list Java processes
jcmd -l
# list running JVM's system properties or flags (select a 'pid' from above command's result list)
jcmd pid VM.system_properties
jcmd pid VM.flags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment