vmoption

vmoption在线教程

查看,更新VM诊断相关的参数

使用参考

查看所有的option

  1. [arthas@56963]$ vmoption
  2. KEY VALUE ORIGIN WRITEABLE
  3. ---------------------------------------------------------------------------------------------
  4. HeapDumpBeforeFullGC false DEFAULT true
  5. HeapDumpAfterFullGC false DEFAULT true
  6. HeapDumpOnOutOfMemory false DEFAULT true
  7. Error
  8. HeapDumpPath DEFAULT true
  9. CMSAbortablePrecleanW 100 DEFAULT true
  10. aitMillis
  11. CMSWaitDuration 2000 DEFAULT true
  12. CMSTriggerInterval -1 DEFAULT true
  13. PrintGC false DEFAULT true
  14. PrintGCDetails true MANAGEMENT true
  15. PrintGCDateStamps false DEFAULT true
  16. PrintGCTimeStamps false DEFAULT true
  17. PrintGCID false DEFAULT true
  18. PrintClassHistogramBe false DEFAULT true
  19. foreFullGC
  20. PrintClassHistogramAf false DEFAULT true
  21. terFullGC
  22. PrintClassHistogram false DEFAULT true
  23. MinHeapFreeRatio 0 DEFAULT true
  24. MaxHeapFreeRatio 100 DEFAULT true
  25. PrintConcurrentLocks false DEFAULT true

查看指定的option

  1. [arthas@56963]$ vmoption PrintGCDetails
  2. KEY VALUE ORIGIN WRITEABLE
  3. ---------------------------------------------------------------------------------------------
  4. PrintGCDetails false MANAGEMENT true

更新指定的option

  1. [arthas@56963]$ vmoption PrintGCDetails true
  2. Successfully updated the vm option.
  3. PrintGCDetails=true