Arthas vmoption(查看和修改 JVM里诊断相关的option)

简介: Arthas vmoption(查看和修改 JVM里诊断相关的option)

image.png

@[toc]

二、命令列表

2.1 jvm相关命令

2.1.6 vmoption(查看和修改 JVM里诊断相关的option)

参数说明:

命令 说明
vmoption 查看所有的选项
vmoption MinHeapFreeRatio 查看指定的选项
moption MinHeapFreeRatio 50 更新指定的选项

举例1:vmoption 查看所有的选项

基础语法
vmoption

[arthas@18139]$ vmoption
 KEY                                                       VALUE                                                     ORIGIN                                                    WRITEABLE                                                
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 HeapDumpBeforeFullGC                                      false                                                     DEFAULT                                                   true                                                     
 HeapDumpAfterFullGC                                       false                                                     DEFAULT                                                   true                                                     
 HeapDumpOnOutOfMemoryError                                false                                                     DEFAULT                                                   true                                                     
 HeapDumpPath                                                                                                        DEFAULT                                                   true                                                     
 CMSAbortablePrecleanWaitMillis                            100                                                       DEFAULT                                                   true                                                     
 CMSWaitDuration                                           2000                                                      DEFAULT                                                   true                                                     
 CMSTriggerInterval                                        -1                                                        DEFAULT                                                   true                                                     
 PrintGC                                                   true                                                      DEFAULT                                                   true                                                     
 PrintGCDetails                                            true                                                      VM_CREATION                                               true                                                     
 PrintGCDateStamps                                         true                                                      VM_CREATION                                               true                                                     
 PrintGCTimeStamps                                         false                                                     DEFAULT                                                   true                                                     
 PrintGCID                                                 false                                                     DEFAULT                                                   true                                                     
 PrintClassHistogramBeforeFullGC                           false                                                     DEFAULT                                                   true                                                     
 PrintClassHistogramAfterFullGC                            false                                                     DEFAULT                                                   true                                                     
 PrintClassHistogram                                       false                                                     DEFAULT                                                   true                                                     
 MinHeapFreeRatio                                          40                                                        DEFAULT                                                   true                                                     
 MaxHeapFreeRatio                                          70                                                        DEFAULT                                                   true                                                     
 PrintConcurrentLocks                                      false                                                     DEFAULT                                                   true                                                     
 UseAppCDS                                                 false                                                     DEFAULT                                                   true                                                     
 FlightRecorder                                            true                                                      MANAGEMENT                                                true                                                     
 StartFlightRecording                                                                                                DEFAULT                                                   true                                                     
 MemoryRestriction                                         none                                                      DEFAULT                                                   true                                                     
 ResourceManagement                                        false                                                     DEFAULT                                                   true                                                     
 ResourceManagementSampleInterval                          -1                                                        DEFAULT                                                   true                                                     
[arthas@18139]$

举例2:vmoption MinHeapFreeRatio 查看指定的选项

基础语法
vmoption MinHeapFreeRatio

[arthas@18139]$ vmoption MinHeapFreeRatio
 KEY                                                       VALUE                                                     ORIGIN                                                    WRITEABLE                                                
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 MinHeapFreeRatio                                          40                                                        DEFAULT                                                   true                                                     
[arthas@18139]$

本人其他相关文章链接

1.Arthas 全攻略:让调试变得简单
2.Arthas dashboard(当前系统的实时数据面板)
3.Arthas thread(查看当前JVM的线程堆栈信息)
4.Arthas jvm(查看当前JVM的信息)
5.Arthas sysprop(查看和修改JVM的系统属性)
6.Arthas sysenv(查看JVM的环境变量)
7.Arthas vmoption(查看和修改 JVM里诊断相关的option)
8.Arthas getstatic(查看类的静态属性 )
9.Arthas heapdump(dump java heap, 类似 jmap 命令的 heap dump 功能)
10.Arthas logger(查看 logger 信息,更新 logger level)
11.Arthas mbean(查看 Mbean 的信息)
12.Arthas memory(查看 JVM 内存信息)
13.Arthas ognl(执行ognl表达式)
14.Arthas perfcounter(查看当前 JVM 的 Perf Counter 信息)
15.Arthas vmtool(从 jvm 里查询对象,执行 forceGc)
16.Arthas jad(字节码文件反编译成源代码 )
17.Arthas mc(Memory Compiler/内存编译器 )
18.Arthas redefine(加载外部的.class文件,redefine到JVM里 )
19.Arthas classloader (查看 classloader 的继承树,urls,类加载信息)
20.Arthas sc(查看JVM已加载的类信息 )
21.Arthas sm(查看已加载类的方法信息 )
22.Arthas monitor(方法执行监控)
23.Arthas stack (输出当前方法被调用的调用路径)
24.Arthas trace (方法内部调用路径,并输出方法路径上的每个节点上耗时)
25.Arthas tt(方法执行数据的时空隧道,记录下指定方法每次调用的入参和返回信息,并能对这些不同的时间下调用进行观测)
26.Arthas watch (方法执行数据观测)
27.Arthas profiler(使用async-profiler对应用采样,生成火焰图)

image.png

重要信息

image.png
image.png
image.png
image.png
Arthas vmoption(查看和修改 JVM里诊断相关的option)

目录
相关文章
|
Arthas 监控 Java
Java 诊断利器 Arthas使用
Java 诊断利器 Arthas使用
360 0
|
2月前
|
Arthas 监控 Java
Arthas memory(查看 JVM 内存信息)
Arthas memory(查看 JVM 内存信息)
104 6
|
23天前
|
Arthas 监控 Java
Arthas jvm(查看当前JVM的信息)
Arthas jvm(查看当前JVM的信息)
59 17
|
21天前
|
Arthas 监控 Java
Arthas sysprop(查看和修改JVM的系统属性)
Arthas sysprop(查看和修改JVM的系统属性)
50 9
|
22天前
|
Arthas 监控 Java
Arthas thread(查看当前JVM的线程堆栈信息)
Arthas thread(查看当前JVM的线程堆栈信息)
123 10
|
1月前
|
Arthas 监控 Java
Arthas perfcounter(查看当前 JVM 的 Perf Counter 信息)
Arthas perfcounter(查看当前 JVM 的 Perf Counter 信息)
46 15
|
1月前
|
Arthas 监控 Java
Arthas vmtool(从 jvm 里查询对象,执行 forceGc)
Arthas vmtool(从 jvm 里查询对象,执行 forceGc)
85 16
|
2月前
|
Arthas 监控 Java
Arthas redefine(加载外部的.class文件,redefine到JVM里 )
Arthas redefine(加载外部的.class文件,redefine到JVM里 )
103 15
|
2月前
|
Arthas 监控 Java
Arthas sc(查看JVM已加载的类信息 )
Arthas sc(查看JVM已加载的类信息 )
59 9
|
11月前
|
Arthas 监控 Java
(十一)JVM成神路之性能调优篇:GC调优、Arthas工具详解及各场景下线上最佳配置推荐
“在当前的互联网开发模式下,系统访问量日涨、并发暴增、线上瓶颈等各种性能问题纷涌而至,性能优化成为了现时代开发过程中炙手可热的名词,无论是在开发、面试过程中,性能优化都是一个常谈常新的话题”。
899 3