This commit is contained in:
hengyunabc
2023-04-19 15:35:06 +08:00
parent 5a56025e81
commit 398d05fee8
2 changed files with 11 additions and 5 deletions
+5 -2
View File
@@ -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
```
+6 -3
View File
@@ -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
```