vmoption
查看/修改VM诊断相关的参数
命令选项
命令选项 | 描述 |
---|---|
-h, --help | 帮助 |
<option-name> | 属性名 |
<option-name> | 属性值 |
示例
bash
# 查看所有VM诊断属性
[arthas@10580]$ vmoption
# 查看指定属性
[arthas@10580]$ vmoption HeapDumpBeforeFullGC
KEY VALUE ORIGIN WRITEABLE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
HeapDumpBeforeFullGC false DEFAULT true
# 修改属性
[arthas@10580]$ vmoption HeapDumpBeforeFullGC true
NAME BEFORE-VALUE AFTER-VALUE
-------------------------------------------------
HeapDumpBeforeFullGC false true
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14