mirror of https://github.com/alibaba/arthas.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.5 KiB
Markdown
67 lines
2.5 KiB
Markdown
3 years ago
|
# vmoption
|
||
6 years ago
|
|
||
5 years ago
|
[`vmoption` online tutorial](https://arthas.aliyun.com/doc/arthas-tutorials.html?language=en&id=command-vmoption)
|
||
5 years ago
|
|
||
3 years ago
|
::: tip
|
||
|
Display, and update the vm diagnostic options.
|
||
|
:::
|
||
6 years ago
|
|
||
|
### Usage
|
||
|
|
||
|
#### View all options
|
||
|
|
||
|
```bash
|
||
|
[arthas@56963]$ vmoption
|
||
|
KEY VALUE ORIGIN WRITEABLE
|
||
|
---------------------------------------------------------------------------------------------
|
||
|
HeapDumpBeforeFullGC false DEFAULT true
|
||
|
HeapDumpAfterFullGC false DEFAULT true
|
||
|
HeapDumpOnOutOfMemory false DEFAULT true
|
||
|
Error
|
||
|
HeapDumpPath DEFAULT true
|
||
|
CMSAbortablePrecleanW 100 DEFAULT true
|
||
|
aitMillis
|
||
|
CMSWaitDuration 2000 DEFAULT true
|
||
|
CMSTriggerInterval -1 DEFAULT true
|
||
|
PrintGC false DEFAULT true
|
||
|
PrintGCDetails true MANAGEMENT true
|
||
|
PrintGCDateStamps false DEFAULT true
|
||
|
PrintGCTimeStamps false DEFAULT true
|
||
|
PrintGCID false DEFAULT true
|
||
|
PrintClassHistogramBe false DEFAULT true
|
||
|
foreFullGC
|
||
|
PrintClassHistogramAf false DEFAULT true
|
||
|
terFullGC
|
||
|
PrintClassHistogram false DEFAULT true
|
||
|
MinHeapFreeRatio 0 DEFAULT true
|
||
|
MaxHeapFreeRatio 100 DEFAULT true
|
||
|
PrintConcurrentLocks false DEFAULT true
|
||
|
```
|
||
|
|
||
|
#### View individual option
|
||
|
|
||
|
```bash
|
||
4 years ago
|
$ vmoption PrintGC
|
||
|
KEY VALUE ORIGIN WRITEABLE
|
||
|
---------------------------------------------------------------------------------
|
||
|
PrintGC false MANAGEMENT true
|
||
6 years ago
|
```
|
||
|
|
||
|
#### Update individual option
|
||
|
|
||
|
```bash
|
||
4 years ago
|
$ vmoption PrintGC true
|
||
6 years ago
|
Successfully updated the vm option.
|
||
4 years ago
|
NAME BEFORE-VALUE AFTER-VALUE
|
||
|
------------------------------------
|
||
|
PrintGC false true
|
||
6 years ago
|
```
|
||
4 years ago
|
|
||
|
```bash
|
||
|
$ vmoption PrintGCDetails true
|
||
|
Successfully updated the vm option.
|
||
|
NAME BEFORE-VALUE AFTER-VALUE
|
||
|
-------------------------------------------
|
||
|
PrintGCDetails false true
|
||
3 years ago
|
```
|