From 54487812567b62caee7628bc2b08d0c9b09de169 Mon Sep 17 00:00:00 2001 From: Suninsky Date: Sun, 19 Feb 2023 21:30:53 +0800 Subject: [PATCH] jmap: add dump live objects only. (#9865) --- pages/common/jmap.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/jmap.md b/pages/common/jmap.md index 4f369468c..08b7fdaf9 100644 --- a/pages/common/jmap.md +++ b/pages/common/jmap.md @@ -18,3 +18,7 @@ - Dump contents of the heap into a binary file for analysis with jhat: `jmap -dump:format=b,file={{path/to/file}} {{java_pid}}` + +- Dump live objects of the heap into a binary file for analysis with jhat: + +`jmap -dump:live,format=b,file={{path/to/file}} {{java_pid}}`