日期:2014-05-16 浏览次数:20415 次
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://java.sun.com/ 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 = java.vm.specification.vendor = Sun Microsystems Inc. os.name = Linux sun.jnu.encoding = UTF-8 java.library.path = /work/ProgramFiles/jdk1.6.0_14/jre/lib/i386/server:/work/ProgramFiles/jdk1.6.0_14/jre/lib/i386:/work/ProgramFiles/jdk1.6.0_14/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/java/packages/lib/i386:/lib:/usr/lib java.specification.name = Java Platform API Specification java.class.version = 50.0 sun.management.compiler = HotSpot Tiered Compilers os.version = 2.6.28-19-generic user.home = /home/yblin user.timezone = PRC java.awt.printerjob = sun.print.PSPrinterJob file.encoding = GBK java.specification.version = 1.6 java.class.path = user.name = yblin java.vm.specification.version = 1.0 java.home = /work/ProgramFiles/jdk1.6.0_14/jre sun.arch.data.model = 32 user.language = zh java.specification.vendor = Sun Microsystems Inc. java.vm.info = mixed mode java.version = 1.6.0_14 java.ext.dirs = /work/ProgramFiles/jdk1.6.0_14/jre/lib/ext:/usr/java/packages/lib/ext sun.boot.class.path = /work/ProgramFiles/jdk1.6.0_14/jre/lib/resources.jar:/work/ProgramFiles/jdk1.6.0_14/jre/lib/rt.jar:/work/ProgramFi