jattach
jattach copied to clipboard
Support for jmap -live
I would like to know if jattach supports the equivalent of the jmap -dump:live as mentioned in Oracle documentation. The intent here is to only dump live objects, in order to optimize the size of the dump file. Since jattach only has the dumpheap option, it is not clear, if the live option is supported.
Appreciate your help.
Yes, just add -live option at the end:
jattach PID dumpheap outputfile.hprof -live