jattach(1)

jattach1

Dynamc attach utility for the jvm

Usage

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

Overview

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

Options

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

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

From jattach 2.2-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.