update memory command doc

This commit is contained in:
hengyunabc 2023-05-19 17:56:17 +08:00
parent 8a954b4f28
commit c55cb7c3ac
2 changed files with 22 additions and 0 deletions

View File

@ -2,6 +2,17 @@
查看 JVM 内存信息。
具体字段信息,参考:
* [MemoryMXBean#getHeapMemoryUsage()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryMXBean.html#getHeapMemoryUsage())
* [MemoryMXBean#getNonHeapMemoryUsage()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryMXBean.html#getHeapMemoryUsage())
具体代码:
* https://github.com/alibaba/arthas/blob/master/core/src/main/java/com/taobao/arthas/core/command/monitor200/MemoryCommand.java
## 使用参考
```

View File

@ -2,6 +2,17 @@
View the JVM memory information.
For field information, refer to:
* [MemoryMXBean#getHeapMemoryUsage()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryMXBean.html#getHeapMemoryUsage())
* [MemoryMXBean#getNonHeapMemoryUsage()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryMXBean.html#getHeapMemoryUsage())
Source code:
* https://github.com/alibaba/arthas/blob/master/core/src/main/java/com/taobao/arthas/core/command/monitor200/MemoryCommand.java
## Usage
```bash