jcmd PerfCounter 说明
所属分类 java
浏览量 2410
性能计数器 重点 信息说明
加载的类数量
java.cls.loadedClasses=4821
卸载的类数量
java.cls.unloadedClasses=0
持久代 或 元数据空间溢出时 可查看 类加载与卸载情况
jvm启动参数 堆大小 GC参数 等
java.rt.vmArgs
java.rt.vmFlags=""
可通过 jcmd 57383 VM.flags 查看
-XX:CICompilerCount=3 -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -XX:+FlightRecorder -XX:GCLogFileSize=10485760 -XX:InitialHeapSize=4294967296 -XX:MaxHeapSize=4294967296 -XX:MaxNewSize=348913664 -XX:MaxTenuringThreshold=6 -XX:MinHeapDeltaBytes=196608 -XX:NewSize=348913664 -XX:NumberOfGCLogFiles=3 -XX:OldPLABSize=16 -XX:OldSize=3946053632 -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:ThreadStackSize=256 -XX:+UnlockCommercialFeatures -XX:+UseCMSCompactAtFullCollection -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseFastAccessorMethods -XX:+UseFastUnorderedTimeStamps -XX:+UseGCLogFileRotation -XX:+UseParNewGC
# 线程数 后台线程数 当前活跃线程数 最大活跃线程数 总共启动的线程数
java.threads.daemon=61
java.threads.live=62
java.threads.livePeak=64
java.threads.started=71
编译线程数
sun.ci.threads=3
使用的GC 策略 算法
sun.gc.policy.name="ParNew:CMS"
sun.gc.cause="No GC"
sun.gc.lastCause="Allocation Failure"
sun.gc.collector.0.invocations=49
sun.gc.collector.0.lastEntryTime=1063813746003
sun.gc.collector.0.lastExitTime=1063882216126
sun.gc.collector.0.name="PCopy"
sun.gc.collector.0.time=2479494927
sun.gc.collector.1.invocations=2
sun.gc.collector.1.lastEntryTime=13048280096
sun.gc.collector.1.lastExitTime=13080592659
sun.gc.collector.1.name="CMS"
sun.gc.collector.1.time=44870249
sun.gc.generation.0.capacity=348913664
sun.gc.generation.0.maxCapacity=348913664
sun.gc.generation.0.minCapacity=348913664
sun.gc.generation.0.name="new"
sun.gc.generation.0.space.0.capacity=279183360
sun.gc.generation.0.space.0.initCapacity=0
sun.gc.generation.0.space.0.maxCapacity=279183360
sun.gc.generation.0.space.0.name="eden"
sun.gc.generation.0.space.0.used=157804448
sun.gc.generation.0.space.1.capacity=34865152
sun.gc.generation.0.space.1.initCapacity=0
sun.gc.generation.0.space.1.maxCapacity=34865152
sun.gc.generation.0.space.1.name="s0"
sun.gc.generation.0.space.1.used=0
sun.gc.generation.0.space.2.capacity=34865152
sun.gc.generation.0.space.2.initCapacity=0
sun.gc.generation.0.space.2.maxCapacity=34865152
sun.gc.generation.0.space.2.name="s1"
sun.gc.generation.0.space.2.used=34865152
sun.gc.generation.0.spaces=3
sun.gc.generation.0.threads=4
sun.gc.generation.1.capacity=3946053632
sun.gc.generation.1.maxCapacity=3946053632
sun.gc.generation.1.minCapacity=3946053632
sun.gc.generation.1.name="old"
sun.gc.generation.1.space.0.capacity=3946053632
sun.gc.generation.1.space.0.initCapacity=3946053632
sun.gc.generation.1.space.0.maxCapacity=3946053632
sun.gc.generation.1.space.0.name="old"
sun.gc.generation.1.space.0.used=417808824
sun.gc.generation.1.spaces=1
sun.gc.metaspace.capacity=33603584
sun.gc.metaspace.maxCapacity=1105199104
sun.gc.metaspace.minCapacity=0
sun.gc.metaspace.used=32716848
sun.gc.policy.collectors=2
sun.gc.policy.desiredSurvivorSize=17432576
sun.gc.policy.generations=3
sun.gc.policy.maxTenuringThreshold=6
sun.gc.policy.name="ParNew:CMS"
sun.gc.policy.tenuringThreshold=2
sun.gc.tlab.alloc=34922204
sun.gc.tlab.allocThreads=48
sun.gc.tlab.fastWaste=18
sun.gc.tlab.fills=941
sun.gc.tlab.gcWaste=372003
sun.gc.tlab.maxFastWaste=13
sun.gc.tlab.maxFills=53
sun.gc.tlab.maxGcWaste=73779
sun.gc.tlab.maxSlowAlloc=16
sun.gc.tlab.maxSlowWaste=556
sun.gc.tlab.slowAlloc=488
sun.gc.tlab.slowWaste=7472
全部内容
jcmd 57383 PerfCounter.print
57383:
java.ci.totalTime=82413796619
java.cls.loadedClasses=4821
java.cls.sharedLoadedClasses=0
java.cls.sharedUnloadedClasses=0
java.cls.unloadedClasses=0
java.property.java.class.path="/Users/dugang/soft/apps/benchmark8010/bin/bootstrap.jar:/Users/dugang/soft/apps/benchmark8010/bin/tomcat-juli.jar"
java.property.java.endorsed.dirs="/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/endorsed"
java.property.java.ext.dirs="/Users/dugang/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java"
java.property.java.home="/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre"
java.property.java.library.path="/Users/dugang/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:."
java.property.java.version="1.8.0_121"
java.property.java.vm.info="mixed mode"
java.property.java.vm.name="Java HotSpot(TM) 64-Bit Server VM"
java.property.java.vm.specification.name="Java Virtual Machine Specification"
java.property.java.vm.specification.vendor="Oracle Corporation"
java.property.java.vm.specification.version="1.8"
java.property.java.vm.vendor="Oracle Corporation"
java.property.java.vm.version="25.121-b13"
java.rt.vmArgs="-Djava.util.logging.config.file=/Users/dugang/soft/apps/benchmark8010/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Xms4096M -Xmx4096M -Xss256k -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/Users/dugang/gc.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=3 -XX:GCLogFileSize=10M -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -Dcatalina.base=/Users/dugang/soft/apps/benchmark8010 -Dcatalina.home=/Users/dugang/soft/apps/benchmark8010 -Djava.io.tmpdir=/Users/dugang/soft/apps/benchmark8010/temp"
java.rt.vmFlags=""
java.threads.daemon=61
java.threads.live=62
java.threads.livePeak=64
java.threads.started=71
sun.ci.compilerThread.0.compiles=695
sun.ci.compilerThread.0.method=""
sun.ci.compilerThread.0.time=313557
sun.ci.compilerThread.0.type=1
sun.ci.compilerThread.1.compiles=747
sun.ci.compilerThread.1.method=""
sun.ci.compilerThread.1.time=260055
sun.ci.compilerThread.1.type=1
sun.ci.compilerThread.2.compiles=4469
sun.ci.compilerThread.2.method=""
sun.ci.compilerThread.2.time=1233676
sun.ci.compilerThread.2.type=1
sun.ci.lastFailedMethod="org/apache/catalina/webresources/StandardRoot getResourceInternal"
sun.ci.lastFailedType=1
sun.ci.lastInvalidatedMethod=""
sun.ci.lastInvalidatedType=0
sun.ci.lastMethod="java/lang/String valueOf"
sun.ci.lastSize=5
sun.ci.lastType=1
sun.ci.nmethodCodeSize=12153952
sun.ci.nmethodSize=22498752
sun.ci.osrBytes=40791
sun.ci.osrCompiles=74
sun.ci.osrTime=1488476032
sun.ci.standardBytes=1587336
sun.ci.standardCompiles=5836
sun.ci.standardTime=80925320587
sun.ci.threads=3
sun.ci.totalBailouts=1
sun.ci.totalCompiles=5910
sun.ci.totalInvalidates=0
sun.classloader.findClassTime=2965591771
sun.classloader.findClasses=1231
sun.classloader.parentDelegationTime=147486775
sun.cls.appClassBytes=10496660
sun.cls.appClassLoadCount=2741
sun.cls.appClassLoadTime=3481653759
sun.cls.appClassLoadTime.self=2308055204
sun.cls.classInitTime=2809527145
sun.cls.classInitTime.self=1238856805
sun.cls.classLinkedTime=1975048693
sun.cls.classLinkedTime.self=142318869
sun.cls.classVerifyTime=1831813563
sun.cls.classVerifyTime.self=568045805
sun.cls.defineAppClassTime=963514866
sun.cls.defineAppClassTime.self=66031818
sun.cls.defineAppClasses=1822
sun.cls.initializedClasses=3644
sun.cls.isUnsyncloadClassSet=0
sun.cls.jniDefineClassNoLockCalls=1
sun.cls.jvmDefineClassNoLockCalls=1817
sun.cls.jvmFindLoadedClassNoLockCalls=9273
sun.cls.linkedClasses=4169
sun.cls.loadInstanceClassFailRate=0
sun.cls.loadedBytes=10236344
sun.cls.lookupSysClassTime=1210165134
sun.cls.methodBytes=4837712
sun.cls.nonSystemLoaderLockContentionRate=0
sun.cls.parseClassTime=1978520082
sun.cls.parseClassTime.self=1405575340
sun.cls.sharedClassLoadTime=669983
sun.cls.sharedLoadedBytes=0
sun.cls.sharedUnloadedBytes=0
sun.cls.sysClassBytes=11873035
sun.cls.sysClassLoadTime=1830871344
sun.cls.systemLoaderLockContentionRate=0
sun.cls.time=7466039398
sun.cls.unloadedBytes=0
sun.cls.unsafeDefineClassCalls=102
sun.cls.verifiedClasses=4167
sun.gc.cause="No GC"
sun.gc.collector.0.invocations=49
sun.gc.collector.0.lastEntryTime=1063813746003
sun.gc.collector.0.lastExitTime=1063882216126
sun.gc.collector.0.name="PCopy"
sun.gc.collector.0.time=2479494927
sun.gc.collector.1.invocations=2
sun.gc.collector.1.lastEntryTime=13048280096
sun.gc.collector.1.lastExitTime=13080592659
sun.gc.collector.1.name="CMS"
sun.gc.collector.1.time=44870249
sun.gc.compressedclassspace.capacity=3719168
sun.gc.compressedclassspace.maxCapacity=1073741824
sun.gc.compressedclassspace.minCapacity=0
sun.gc.compressedclassspace.used=3480776
sun.gc.generation.0.agetable.bytes.00=0
sun.gc.generation.0.agetable.bytes.01=16048208
sun.gc.generation.0.agetable.bytes.02=15607704
sun.gc.generation.0.agetable.bytes.03=0
sun.gc.generation.0.agetable.bytes.04=0
sun.gc.generation.0.agetable.bytes.05=0
sun.gc.generation.0.agetable.bytes.06=0
sun.gc.generation.0.agetable.bytes.07=0
sun.gc.generation.0.agetable.bytes.08=0
sun.gc.generation.0.agetable.bytes.09=0
sun.gc.generation.0.agetable.bytes.10=0
sun.gc.generation.0.agetable.bytes.11=0
sun.gc.generation.0.agetable.bytes.12=0
sun.gc.generation.0.agetable.bytes.13=0
sun.gc.generation.0.agetable.bytes.14=0
sun.gc.generation.0.agetable.bytes.15=0
sun.gc.generation.0.agetable.size=16
sun.gc.generation.0.capacity=348913664
sun.gc.generation.0.maxCapacity=348913664
sun.gc.generation.0.minCapacity=348913664
sun.gc.generation.0.name="new"
sun.gc.generation.0.space.0.capacity=279183360
sun.gc.generation.0.space.0.initCapacity=0
sun.gc.generation.0.space.0.maxCapacity=279183360
sun.gc.generation.0.space.0.name="eden"
sun.gc.generation.0.space.0.used=157804448
sun.gc.generation.0.space.1.capacity=34865152
sun.gc.generation.0.space.1.initCapacity=0
sun.gc.generation.0.space.1.maxCapacity=34865152
sun.gc.generation.0.space.1.name="s0"
sun.gc.generation.0.space.1.used=0
sun.gc.generation.0.space.2.capacity=34865152
sun.gc.generation.0.space.2.initCapacity=0
sun.gc.generation.0.space.2.maxCapacity=34865152
sun.gc.generation.0.space.2.name="s1"
sun.gc.generation.0.space.2.used=34865152
sun.gc.generation.0.spaces=3
sun.gc.generation.0.threads=4
sun.gc.generation.1.capacity=3946053632
sun.gc.generation.1.maxCapacity=3946053632
sun.gc.generation.1.minCapacity=3946053632
sun.gc.generation.1.name="old"
sun.gc.generation.1.space.0.capacity=3946053632
sun.gc.generation.1.space.0.initCapacity=3946053632
sun.gc.generation.1.space.0.maxCapacity=3946053632
sun.gc.generation.1.space.0.name="old"
sun.gc.generation.1.space.0.used=417808824
sun.gc.generation.1.spaces=1
sun.gc.lastCause="Allocation Failure"
sun.gc.metaspace.capacity=33603584
sun.gc.metaspace.maxCapacity=1105199104
sun.gc.metaspace.minCapacity=0
sun.gc.metaspace.used=32716848
sun.gc.policy.collectors=2
sun.gc.policy.desiredSurvivorSize=17432576
sun.gc.policy.generations=3
sun.gc.policy.maxTenuringThreshold=6
sun.gc.policy.name="ParNew:CMS"
sun.gc.policy.tenuringThreshold=2
sun.gc.tlab.alloc=34922204
sun.gc.tlab.allocThreads=48
sun.gc.tlab.fastWaste=18
sun.gc.tlab.fills=941
sun.gc.tlab.gcWaste=372003
sun.gc.tlab.maxFastWaste=13
sun.gc.tlab.maxFills=53
sun.gc.tlab.maxGcWaste=73779
sun.gc.tlab.maxSlowAlloc=16
sun.gc.tlab.maxSlowWaste=556
sun.gc.tlab.slowAlloc=488
sun.gc.tlab.slowWaste=7472
sun.os.hrt.frequency=1000000000
sun.os.hrt.ticks=1076972143168
sun.perfdata.majorVersion=2
sun.perfdata.minorVersion=0
sun.perfdata.overflow=0
sun.perfdata.size=32768
sun.perfdata.timestamp=110846389
sun.perfdata.used=16848
sun.property.sun.boot.class.path="/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/classes"
sun.property.sun.boot.library.path="/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib"
sun.rt._sync_ContendedLockAttempts=10352
sun.rt._sync_Deflations=47326
sun.rt._sync_EmptyNotifications=0
sun.rt._sync_FailedSpins=0
sun.rt._sync_FutileWakeups=17
sun.rt._sync_Inflations=47344
sun.rt._sync_MonExtant=6400
sun.rt._sync_MonInCirculation=0
sun.rt._sync_MonScavenged=0
sun.rt._sync_Notifications=104
sun.rt._sync_Parks=2659
sun.rt._sync_PrivateA=0
sun.rt._sync_PrivateB=0
sun.rt._sync_SlowEnter=0
sun.rt._sync_SlowExit=0
sun.rt._sync_SlowNotify=0
sun.rt._sync_SlowNotifyAll=0
sun.rt._sync_SuccessfulSpins=0
sun.rt.applicationTime=1073955003032
sun.rt.createVmBeginTime=1571276542236
sun.rt.createVmEndTime=1571276542341
sun.rt.internalVersion="Java HotSpot(TM) 64-Bit Server VM (25.121-b13) for bsd-amd64 JRE (1.8.0_121-b13), built on Dec 12 2016 20:39:32 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)"
sun.rt.interruptedBeforeIO=0
sun.rt.interruptedDuringIO=0
sun.rt.javaCommand="org.apache.catalina.startup.Bootstrap start"
sun.rt.jvmCapabilities="1100000000000000000000000000000000000000000000000000000000000000"
sun.rt.jvmVersion=427360269
sun.rt.safepointSyncTime=54870218
sun.rt.safepointTime=2843479299
sun.rt.safepoints=660
sun.rt.threadInterruptSignaled=0
sun.rt.vmInitDoneTime=1571276542320
sun.threads.vmOperationTime=2686908944
sun.urlClassLoader.readClassBytesTime=1832691684
sun.zip.zipFile.openTime=168150501
sun.zip.zipFiles=646
上一篇
下一篇
JVM性能分析利器 JMC 和 JFR
Timer和ScheduledExecutorService的区别
不要在finally块中使用return
集合遍历删除注意点
java编码规范
jvm热点线程定位