2015年6月9日星期二

Java_020:JDK 自带小工具介绍之三:jinfo

环境:MAC OS X 10.10.3 + Oracle JDK 1.7.0_80

jinfo 显示运行中的java进程的运行环境参数:参数包括Java System属性和JVM命令行参数。
另外,系统崩溃时,jinfo可以从core文件里面知道崩溃的Java应用程序的配置信息。

$jinfo 28218

Attaching to process ID 28218, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 24.80-b11
Java System Properties:

jboss.modules.system.pkgs = org.jboss.byteman
logging.configuration = file:/Users/maping/Redhat/eap/demo/myeap/configuration/logging.properties
java.vendor = Oracle Corporation
jboss.qualified.host.name = mapingdemacbook-pro.local
sun.java.launcher = SUN_STANDARD
jboss.modules.policy-permissions = true
org.apache.xml.security.ignoreLineBreaks = true
javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.nio.ch.bugLevel =
os.name = Mac OS X
sun.boot.class.path = /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/classes
jboss.server.persist.config = true
java.vm.specification.vendor = Oracle Corporation
java.runtime.version = 1.7.0_80-b15
javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory
user.name = maping
javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory
jboss.node.name = mapingdemacbook-pro
[Standalone] =
javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory
jboss.home.dir = /Users/maping/Redhat/eap/demo/jboss-eap-6.4
user.language = zh
sun.boot.library.path = /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib
java.version = 1.7.0_80
java.util.logging.manager = org.jboss.logmanager.LogManager
java.net.preferIPv4Stack = true
user.timezone = Asia/Chongqing
jboss.socket.binding.port-offset = 10000
sun.arch.data.model = 64
http.nonProxyHosts = local|*.local|169.254/16|*.169.254/16
java.endorsed.dirs = /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/endorsed
java.rmi.server.randomIDs = true
sun.cpu.isalist =
sun.jnu.encoding = UTF-8
jboss.server.config.dir = /Users/maping/Redhat/eap/demo/myeap/configuration
file.encoding.pkg = sun.io
file.separator = /
java.specification.name = Java Platform API Specification
java.class.version = 51.0
user.country = CN
javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory
java.home = /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre
javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory
java.vm.info = mixed mode
os.version = 10.10.3
org.jboss.boot.log.file = /Users/maping/Redhat/eap/demo/myeap/log/server.log
path.separator = :
java.vm.version = 24.80-b11
java.protocol.handler.pkgs = org.jboss.net.protocol|org.jboss.vfs.protocol
java.awt.printerjob = sun.lwawt.macosx.CPrinterJob
jboss.modules.dir = /Users/maping/Redhat/eap/demo/jboss-eap-6.4/modules
sun.io.unicode.encoding = UnicodeBig
jboss.server.deploy.dir = /Users/maping/Redhat/eap/demo/myeap/data/content
awt.toolkit = sun.lwawt.macosx.LWCToolkit
module.path = /Users/maping/Redhat/eap/demo/jboss-eap-6.4/modules
socksNonProxyHosts = local|*.local|169.254/16|*.169.254/16
ftp.nonProxyHosts = local|*.local|169.254/16|*.169.254/16
jboss.server.temp.dir = /Users/maping/Redhat/eap/demo/myeap/tmp
java.naming.factory.url.pkgs = org.jboss.as.naming.interfaces:org.jboss.ejb.client.naming
user.home = /Users/maping
java.specification.vendor = Oracle Corporation
org.xml.sax.driver = __redirected.__XMLReaderFactory
java.library.path = /Users/maping/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
org.jboss.resolver.warning = true
java.vendor.url = http://java.oracle.com/
java.vm.vendor = Oracle Corporation
gopherProxySet = false
java.runtime.name = Java(TM) SE Runtime Environment
sun.java.command = /Users/maping/Redhat/eap/demo/jboss-eap-6.4/jboss-modules.jar -mp /Users/maping/Redhat/eap/demo/jboss-eap-6.4/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/Users/maping/Redhat/eap/demo/jboss-eap-6.4 -Djboss.server.base.dir=/Users/maping/Redhat/eap/demo/myeap -Djboss.server.base.dir=/Users/maping/Redhat/eap/demo/myeap -c standalone-logtest.xml -bmanagement 192.168.0.105 -Djboss.socket.binding.port-offset=10000
java.class.path = /Users/maping/Redhat/eap/demo/jboss-eap-6.4/jboss-modules.jar
org.jboss.security.context.ThreadLocal = true
jboss.bind.address.management = 192.168.0.105
jboss.server.log.dir = /Users/maping/Redhat/eap/demo/myeap/log
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.version = 1.7
catalina.home = /Users/maping/Redhat/eap/demo/myeap/tmp
sun.cpu.endian = little
javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory
sun.os.patch.level = unknown
java.awt.headless = true
java.io.tmpdir = /var/folders/3w/hlhsjmns5m9g6xv6xqk2864h0000gn/T/
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
jboss.server.data.dir = /Users/maping/Redhat/eap/demo/myeap/data
os.arch = x86_64
java.awt.graphicsenv = sun.awt.CGraphicsEnvironment
java.ext.dirs = /Users/maping/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/ext:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
user.dir = /Users/maping/Redhat/eap/demo/jboss-eap-6.4/bin
line.separator =

java.vm.name = Java HotSpot(TM) 64-Bit Server VM
jboss.server.base.dir = /Users/maping/Redhat/eap/demo/myeap
javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder
javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory
file.encoding = UTF-8
java.specification.version = 1.7
jboss.host.name = mapingdemacbook-pro
javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory
jboss.server.name = mapingdemacbook-pro

VM Flags:

-D[Standalone] -XX:+UseCompressedOops -verbose:gc -Xloggc:/Users/maping/Redhat/eap/demo/myeap/log/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.modules.policy-permissions=true -Dorg.jboss.boot.log.file=/Users/maping/Redhat/eap/demo/myeap/log/server.log -Dlogging.configuration=file:/Users/maping/Redhat/eap/demo/myeap/configuration/logging.properties

没有评论: