diff --git a/site/docs/doc/memory.md b/site/docs/doc/memory.md index f8427b6f..36840ef5 100644 --- a/site/docs/doc/memory.md +++ b/site/docs/doc/memory.md @@ -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 + + ## 使用参考 ``` diff --git a/site/docs/en/doc/memory.md b/site/docs/en/doc/memory.md index 38c493b4..c4dd5f5b 100644 --- a/site/docs/en/doc/memory.md +++ b/site/docs/en/doc/memory.md @@ -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