DOKK / manpages / debian 12 / jattach / jattach.1.en
JATTACH(1) General Commands Manual JATTACH(1)

jattach - dynamc attach utility for the jvm

jattach pid [load|properties|agentProperties|datadump|threaddump|dumpheap|inspectheap|setflag|printflag|jcmd] [args]

jattach is an all in one jamp, jstack, jcmd, jinfo implementation as a tiny single C program.

load load agent library

properties print system properties

agentProperties print agent properties

datadump show heap and thread summary

threaddump dump all stack traces (like jstack)

dumpheap mydumpfile.hprof dump heap (like jmap -dump:live,format=b)

inspectheap create a heap histrogram (like jmap -histo)

setflag modify manageable JVM flag

printflag print JVM flag

jcmd execute jcmd command

February 28 2020