动态修改JVM 部分参数
参考地址:?http://rednaxelafx.iteye.com/blog/1049240
?
查看哪些参数可动态修改
?
$java -XX:+PrintFlagsFinal | grep manageable intx CMSAbortablePrecleanWaitMillis = 100 {manageable} intx CMSWaitDuration = 2000 {manageable} bool HeapDumpAfterFullGC = false {manageable} bool HeapDumpBeforeFullGC = false {manageable} bool HeapDumpOnOutOfMemoryError = false {manageable} ccstr HeapDumpPath = {manageable} bool PrintClassHistogram = false {manageable} bool PrintClassHistogramAfterFullGC = false {manageable} bool PrintClassHistogramBeforeFullGC = false {manageable} bool PrintConcurrentLocks = false {manageable} bool PrintGC = false {manageable} bool PrintGCDateStamps = false {manageable} bool PrintGCDetails = false {manageable} bool PrintGCTimeStamps = false {manageable}
?
执行修改
?
$ jps31570 Jps15920 Launcher$ jinfo -flag +HeapDumpBeforeFullGC 15920 $ jinfo -flag +HeapDumpAfterFullGC 15920
?
注意:
+HeapDumpBeforeFullGC:+号表示设置当前参数为true,-号为false。
?