From 398d05fee8507aa80f0102c51234af0c7d868e09 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Wed, 19 Apr 2023 15:35:06 +0800 Subject: [PATCH] polish #2441 --- site/docs/doc/heapdump.md | 7 +++++-- site/docs/en/doc/heapdump.md | 9 ++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/site/docs/doc/heapdump.md b/site/docs/doc/heapdump.md index f39cf4f14..322ec70b5 100644 --- a/site/docs/doc/heapdump.md +++ b/site/docs/doc/heapdump.md @@ -16,11 +16,14 @@ Dumping heap to arthas-output/dump.hprof ... Heap dump file created ``` +::: tip +生成文件在`arthas-output`目录,可以通过浏览器下载: http://localhost:8563/arthas-output/ +::: ### 只 dump live 对象 ```bash -[arthas@58205]$ heapdump --live arthas-output/dump.hprof -Dumping heap to arthas-output/dump.hprof ... +[arthas@58205]$ heapdump --live /tmp/dump.hprof +Dumping heap to /tmp/dump.hprof ... Heap dump file created ``` diff --git a/site/docs/en/doc/heapdump.md b/site/docs/en/doc/heapdump.md index f89c42f66..3fcb9a602 100644 --- a/site/docs/en/doc/heapdump.md +++ b/site/docs/en/doc/heapdump.md @@ -11,16 +11,19 @@ dump java heap in hprof binary format, like `jmap`. ### Dump to file ```bash -[arthas@58205]$ heapdump /tmp/dump.hprof -Dumping heap to /tmp/dump.hprof... +[arthas@58205]$ heapdump arthas-output/dump.hprof +Dumping heap to arthas-output/dump.hprof ... Heap dump file created ``` +::: tip +The generated file is located in the arthas-output directory and can be downloaded through the browser at http://localhost:8563/arthas-output/ +::: ### Dump only live objects ```bash [arthas@58205]$ heapdump --live /tmp/dump.hprof -Dumping heap to /tmp/dump.hprof... +Dumping heap to /tmp/dump.hprof ... Heap dump file created ```