JVM监控工具

jps:虚拟机进程状况工具

[root@U10-22 bin]# jps -l            
17859 org.apache.catalina.startup.Bootstrap
28586 org.apache.catalina.startup.Bootstrap
28000 org.apache.catalina.startup.Bootstrap
18095 sun.tools.jps.Jps
895 org.apache.catalina.startup.Bootstrap


jstat:虚拟机统计信息监视工具


jinfo:Java配置信息工具

[root@U10-22 bin]# jinfo 28000
Attaching to process ID 28000, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 24.45-b08
Java System Properties:

com.sun.management.jmxremote.authenticate = false
java.runtime.name = Java(TM) SE Runtime Environment
java.vm.version = 24.45-b08
sun.boot.library.path = /opt/jdk1.7.0_45/jre/lib/amd64
shared.loader = 
java.vendor.url = http://java.oracle.com/
java.vm.vendor = Oracle Corporation
path.separator = :
file.encoding.pkg = sun.io
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
java.util.logging.config.file = /app/tomcat-eservice2/conf/logging.properties
tomcat.util.buf.StringCache.byte.enabled = true
sun.os.patch.level = unknown
sun.java.launcher = SUN_STANDARD
user.country = CN
user.dir = /app/tomcat-eservice2/webapps
java.vm.specification.name = Java Virtual Machine Specification
java.runtime.version = 1.7.0_45-b18
org.apache.catalina.startup.TldConfig.jarsToSkip = tomcat7-websocket.jar
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
os.arch = amd64
java.endorsed.dirs = /app/tomcat-eservice2/endorsed
line.separator = 

java.io.tmpdir = /app/tomcat-eservice2/temp
java.vm.specification.vendor = Oracle Corporation
java.util.logging.manager = org.apache.juli.ClassLoaderLogManager
java.naming.factory.url.pkgs = org.apache.naming
os.name = Linux
sun.jnu.encoding = UTF-8
java.library.path = /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
tomcat.util.scan.DefaultJarScanner.jarsToSkip = bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,websocket-api.jar,catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-tribes.jar,jasper.jar,jasper-el.jar,ecj-*.jar,tomcat-api.jar,tomcat-util.jar,tomcat-coyote.jar,tomcat-dbcp.jar,tomcat-jni.jar,tomcat-spdy.jar,tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,tomcat-juli-adapters.jar,catalina-jmx-remote.jar,catalina-ws.jar,tomcat-jdbc.jar,tools.jar,commons-beanutils*.jar,commons-codec*.jar,commons-collections*.jar,commons-dbcp*.jar,commons-digester*.jar,commons-fileupload*.jar,commons-httpclient*.jar,commons-io*.jar,commons-lang*.jar,commons-logging*.jar,commons-math*.jar,commons-pool*.jar,jstl.jar,geronimo-spec-jaxrpc*.jar,wsdl4j*.jar,ant.jar,ant-junit*.jar,aspectj*.jar,jmx.jar,h2*.jar,hibernate*.jar,httpclient*.jar,jmx-tools.jar,jta*.jar,log4j.jar,log4j-1*.jar,mail*.jar,slf4j*.jar,xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,junit.jar,junit-*.jar,hamcrest*.jar,org.hamcrest*.jar,ant-launcher.jar,cobertura-*.jar,asm-*.jar,dom4j-*.jar,icu4j-*.jar,jaxen-*.jar,jdom-*.jar,jetty-*.jar,oro-*.jar,servlet-api-*.jar,tagsoup-*.jar,xmlParserAPIs-*.jar,xom-*.jar
java.class.version = 51.0
java.specification.name = Java Platform API Specification
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
os.version = 2.6.32-573.el6.x86_64
user.home = /root
org.apache.catalina.startup.ContextConfig.jarsToSkip = 
user.timezone = Asia/Shanghai
catalina.useNaming = true
java.awt.printerjob = sun.print.PSPrinterJob
file.encoding = UTF-8
java.specification.version = 1.7
catalina.home = /app/tomcat-eservice2
user.name = root
java.class.path = /app/tomcat-eservice2/bin/bootstrap.jar:/app/tomcat-eservice2/bin/tomcat-juli.jar
java.naming.factory.initial = org.apache.naming.java.javaURLContextFactory
package.definition = sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,org.apache.naming.,org.apache.tomcat.
java.vm.specification.version = 1.7
sun.arch.data.model = 64
sun.java.command = org.apache.catalina.startup.Bootstrap start
java.home = /opt/jdk1.7.0_45/jre
user.language = zh
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.X11.XToolkit
com.sun.management.jmxremote.ssl = false
java.vm.info = mixed mode
java.version = 1.7.0_45
java.ext.dirs = /opt/jdk1.7.0_45/jre/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path = /opt/jdk1.7.0_45/jre/lib/resources.jar:/opt/jdk1.7.0_45/jre/lib/rt.jar:/opt/jdk1.7.0_45/jre/lib/sunrsasign.jar:/opt/jdk1.7.0_45/jre/lib/jsse.jar:/opt/jdk1.7.0_45/jre/lib/jce.jar:/opt/jdk1.7.0_45/jre/lib/charsets.jar:/opt/jdk1.7.0_45/jre/lib/jfr.jar:/opt/jdk1.7.0_45/jre/classes
java.awt.headless = true
server.loader = 
java.vendor = Oracle Corporation
catalina.base = /app/tomcat-eservice2
file.separator = /
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
common.loader = ${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar
sun.io.unicode.encoding = UnicodeLittle
sun.font.fontmanager = sun.awt.X11FontManager
sun.cpu.endian = little
package.access = sun.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,org.apache.naming.resources.,org.apache.tomcat.
sun.cpu.isalist = 

VM Flags:

-Djava.util.logging.config.file=/app/tomcat-eservice2/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xms1g -Xmx1g -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -Xss512k -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC -XX:+PrintGCTimeStamps -Xloggc:/app/tomcat-eservice2/logs/gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/app/tomcat-eservice2/logs -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.endorsed.dirs=/app/tomcat-eservice2/endorsed -Dcatalina.base=/app/tomcat-eservice2 -Dcatalina.home=/app/tomcat-eservice2 -Djava.io.tmpdir=/app/tomcat-eservice2/temp

jmap:Java内存映像工具

[root@U10-22 bin]# jmap 28000 
Attaching to process ID 28000, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 24.45-b08
0x0000000000400000      7K      /opt/jdk1.7.0_45/bin/java
0x0000003424200000      153K    /lib64/ld-2.12.so
0x0000003424600000      1881K   /lib64/libc-2.12.so
0x0000003424a00000      142K    /lib64/libpthread-2.12.so
0x0000003424e00000      22K     /lib64/libdl-2.12.so
0x0000003425200000      46K     /lib64/librt-2.12.so
0x0000003425600000      585K    /lib64/libm-2.12.so
0x0000003426a00000      91K     /lib64/libgcc_s-4.4.7-20120601.so.1
0x0000003427200000      111K    /lib64/libresolv-2.12.so
0x00007f72a5afc000      257K    /opt/jdk1.7.0_45/jre/lib/amd64/libjpeg.so
0x00007f72a5d37000      477K    /opt/jdk1.7.0_45/jre/lib/amd64/libt2k.so
0x00007f72a5fb6000      490K    /opt/jdk1.7.0_45/jre/lib/amd64/libfontmanager.so
0x00007f72e109e000      36K     /opt/jdk1.7.0_45/jre/lib/amd64/headless/libmawt.so
0x00007f72e12a5000      754K    /opt/jdk1.7.0_45/jre/lib/amd64/libawt.so
0x00007f72e805d000      26K     /lib64/libnss_dns-2.12.so
0x00007f72e8ae0000      250K    /opt/jdk1.7.0_45/jre/lib/amd64/libsunec.so
0x00007f72e8df8000      44K     /opt/jdk1.7.0_45/jre/lib/amd64/libmanagement.so
0x00007f72f0333000      111K    /opt/jdk1.7.0_45/jre/lib/amd64/libnet.so
0x00007f72f054a000      89K     /opt/jdk1.7.0_45/jre/lib/amd64/libnio.so
0x00007f72f2383000      120K    /opt/jdk1.7.0_45/jre/lib/amd64/libzip.so
0x00007f72f259e000      64K     /lib64/libnss_files-2.12.so
0x00007f72f27b7000      214K    /opt/jdk1.7.0_45/jre/lib/amd64/libjava.so
0x00007f72f29e2000      63K     /opt/jdk1.7.0_45/jre/lib/amd64/libverify.so
0x00007f72f2c71000      14786K  /opt/jdk1.7.0_45/jre/lib/amd64/server/libjvm.so
0x00007f72f3ada000      103K    /opt/jdk1.7.0_45/lib/amd64/jli/libjli.so


jhat:虚拟机堆转储快照分析工具


JDK的可视化工具

你可能感兴趣的:(JVM)