jinfo
jinfo -flag CMSInitiatingOccupancyFraction 515
-XX:CMSInitiatingOccupancyFraction=-1
可以打印一些系統(tǒng)屬性
jstat
jstat -gcutil 3359
S0 S1 E O M CCS YGC YGCT FGC FGCT GCT
0.00 25.14 40.51 71.72 96.27 94.77 107 1.268 16 0.490 1.757
監(jiān)控虛擬機(jī)的基本狀況,內(nèi)存眨八,gc等情況
jps
-l 輸出主類的全名
-v 輸出jvm參數(shù)
-m 輸出傳遞給main函數(shù)的參數(shù)
-q 只輸出本地虛擬機(jī)唯一id(lvmid)
jmap
jhat
The jhat command parses a java heap dump file and launches a webserver.
jhat enables you to browse heap dumps using your favorite webbrowser. jhat
supports pre-designed queries (such as 'show all instances of a known class
"Foo"') as well as OQL (Object Query Language) - a SQL-like query
language to query heap dumps. Help on OQL is available from the OQL help page
shown by jhat. With the default port, OQL help is available at
http://localhost:7000/oqlhelp/
可以看出虐译,是對jmap dump的數(shù)據(jù)進(jìn)行分析像樊。