JVM问题诊断常用命令:jinfo,jmap,jstack
转载自 ---- http://singleant.iteye.com/blog/739476
?
1.jinfo
描述:输出给定
java
进程所有的配置信息。包括
java
系统属性和
jvm
命令行标记等。
用法:
jinfo [ option ] pid
jinfo [ option ] executable core
jinfo [ option ] [server-id@]remote-hostname-or-IP
例子:
jinfo pid
得到结果如下:
-
JVM?version?is?
14.0
-b16??
-
??
-
Java?System?Properties:??
-
??
-
java.runtime.name?=?Java(TM)?SE?Runtime?Environment??
-
??
-
sun.boot.library.path?=?/work/ProgramFiles/jdk1.6
.0_14/jre/lib/i386??
-
??
-
java.vm.version?=?14.0
-b16??
-
??
-
java.vm.vendor?=?Sun?Microsystems?Inc.??
-
??
-
java.vendor.url?=?http:
??
-
??
-
path.separator?=?:??
-
??
-
java.vm.name?=?Java?HotSpot(TM)?Server?VM??
-
??
-
file.encoding.pkg?=?sun.io??
-
??
-
sun.java.launcher?=?SUN_STANDARD??
-
??
-
user.country?=?CN??
-
??
-
sun.os.patch.level?=?unknown??
-
??
-
java.vm.specification.name?=?Java?Virtual?Machine?Specification??
-
??
-
user.dir?=?/work/RateWorkspace/branches/rate/daemon??
-
??
-
java.runtime.version?=?1.6
.0_14-b08??
-
??
-
java.awt.graphicsenv?=?sun.awt.X11GraphicsEnvironment??
-
??
-
java.endorsed.dirs?=?/work/ProgramFiles/jdk1.6
.0_14/jre/lib/endorsed??
-
??
-
os.arch?=?i386??
-
??
-
java.io.tmpdir?=?/tmp??
-
??
-
line.separator?=???
-
??
<