mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
polish #2441
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user