1.jps:Java Virtual Machine Process Status Tool

作用:输出JVM中运行的进程状态信息
语法:jps [options] [hostid]
如果不指定hostid,则默认为当前主机或服务器
命令行参数:
-q:不输出类名、jar名和传入main方法的参数

  1. $ jps -q
  2. 14240
  3. 3796
  4. 22472
  5. 34520
  6. 38168
  7. 37452
  8. 43628

-m:输出传入main方法的参数

$ jps -m
14240 QuorumPeerMain C:\tool\apache-zookeeper-3.5.5-bin\bin\..\conf\zoo.cfg
19092 Jps -m
3796
22472 MemberApplication
34520 ThirdApplication
38168 Launcher C:/tool/IntelliJ IDEA 2017.1.2/lib/jna.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/openapi.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/jna-platform.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/jgoodies-forms.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/idea_rt.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/javac2.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/jdom.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/jps-builders.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/util.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/forms_rt.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/protobuf-2.5.0.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/log4j.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/jps-model.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/asm-all.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/trove4j.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/oromatcher.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/snappy-in-java-0.5.1.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/netty-all-4.1.9.Final.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/nanoxml-2.2.3.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/annotations
43628 Launcher C:/tool/IntelliJ IDEA 2017.1.2/lib/jna.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/openapi.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/jna-platform.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/jgoodies-forms.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/idea_rt.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/javac2.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/jdom.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/jps-builders.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/util.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/forms_rt.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/protobuf-2.5.0.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/log4j.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/jps-model.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/asm-all.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/trove4j.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/oromatcher.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/snappy-in-java-0.5.1.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/netty-all-4.1.9.Final.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/nanoxml-2.2.3.jar;C:/tool/IntelliJ IDEA 2017.1.2/lib/annotations

-l:输出main类或jar的全限名

$ jps -l
14240 org.apache.zookeeper.server.quorum.QuorumPeerMain
24672 sun.tools.jps.Jps
3796
22472 com.liyz.service.member.MemberApplication
34520 com.qjdchina.third.ThirdApplication
38168 org.jetbrains.jps.cmdline.Launcher

-v:输出传入jvm的参数

$ jps -v
14240 QuorumPeerMain -Dzookeeper.log.dir=C:\tool\apache-zookeeper-3.5.5-bin\bin\..\logs -Dzookeeper.root.logger=INFO,CONSOLE -Dzookeeper.log.file=zookeeper-liyangzhen-server-DESKTOP-O7CJ1M0.log -XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError=cmd /c taskkill /pid %p /t /f
3796  -Xms1024m -Xmx2048m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -javaagent:C:\tool\IntelliJ IDEA 2017.1.2\bin\JetbrainsCrack-3.1-release-enc.jar -Djb.vmOptionsFile=C:\tool\IntelliJ IDEA 2017.1.2\bin\idea64.exe.vmoptions -Xbootclasspath/a:C:\tool\IntelliJ IDEA 2017.1.2\lib\boot.jar -Didea.jre.check=true -Didea.paths.selector=IntelliJIdea2017.1 -XX:ErrorFile=C:\Users\liyangzhen\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\liyangzhen\java_error_in_idea.hprof
22472 MemberApplication -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:64524,suspend=y,server=n -XX:TieredStopAtLevel=1 -Xverify:none -Dspring.output.ansi.enabled=always -Dfile.encoding=UTF-8
34520 ThirdApplication -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:64468,suspend=y,server=n -XX:TieredStopAtLevel=1 -Xverify:none -Dspring.output.ansi.enabled=always -Dfile.encoding=UTF-8
38168 Launcher -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs="" -Djdt.compiler.useSingleThread=true -Dpreload.project.path=C:/code/liyz/dubbo-springboot-project/common-parent -Dpreload.config.path=C:/Users/liyangzhen/.IntelliJIdea2017.1/config/options -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=-3218946531449695843 -Dfile.encoding=GBK -Djps.file.types.component.name=FileTypeManager -Duser.language=zh -Duser.country=CN -Didea.paths.selector=IntelliJIdea2017.1 -Didea.home.path=C:\tool\IntelliJ IDEA 2017.1.2 -Didea.config.path=C:\Users\liyangzhen\.IntelliJIdea2017.1\config -Didea.plugins.path=C:\Users\liyangzhen\.IntelliJIdea2017.1\config\plugins -Djps.log.dir=C:/Users/liyangzhen/.IntelliJIdea2017.1/system/log/build-log -Djps.fallback.jdk.home=C:/tool/IntelliJ IDEA 2017.1.2/jre64 -Djps.fallback.jdk.version=1.8.0_112-release -Dio.netty.noUnsafe=true -Djava.io.tmpdir=C:/Users/liyangzhen/.IntelliJIdea2017.1/system/compile-server/common-pare
14892 Jps -Denv.class.path=.;C:\tool\Java\jdk1.8.0_111\lib;C:\tool\Java\jdk1.8.0_111\lib\tools.jar -Dapplication.home=C:\tool\Java\jdk1.8.0_111 -Xms8m
43628 Launcher -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs="" -Djdt.compiler.useSingleThread=true -Dpreload.project.path=C:/code/qjd/third-service -Dpreload.config.path=C:/Users/liyangzhen/.IntelliJIdea2017.1/config/options -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=-3218946531449695843 -Dfile.encoding=GBK -Djps.file.types.component.name=FileTypeManager -Duser.language=zh -Duser.country=CN -Didea.paths.selector=IntelliJIdea2017.1 -Didea.home.path=C:\tool\IntelliJ IDEA 2017.1.2 -Didea.config.path=C:\Users\liyangzhen\.IntelliJIdea2017.1\config -Didea.plugins.path=C:\Users\liyangzhen\.IntelliJIdea2017.1\config\plugins -Djps.log.dir=C:/Users/liyangzhen/.IntelliJIdea2017.1/system/log/build-log -Djps.fallback.jdk.home=C:/tool/IntelliJ IDEA 2017.1.2/jre64 -Djps.fallback.jdk.version=1.8.0_112-release -Dio.netty.noUnsafe=true -Djava.io.tmpdir=C:/Users/liyangzhen/.IntelliJIdea2017.1/system/compile-server/service-third_748e06dd/_temp_ -Djps.b

2.jstack

作用:查看某个java进程内的线程堆栈信息
语法:
jstack [option] pid
jstack [option] executable core
jstack [option] [server-id@]remote-hostname-or-ip
命令行参数:
-l long listings,会打印出额外的锁信息,在发生死锁时可以用jstack -l pid来观察锁持有的情况
-m mixed mode,不仅会输出java堆栈信息,还会输出c/c++堆栈信息,比如native方法

2.1.首先用ps -ef | grep ** 找出需要查看进程的pid
2.2.再使用 ps -Lfp pid 或 ps -mp pid -o THREAD, tid, time 或 top -Hp pid查看该进程线程情况,找出最耗时的线程 windows可以通过:pslist -dmx pid 注:psTools需要到微软官方去下载,然后放到c:/windows/system32,但是貌似看不出每个线程的执行时间
printf “%x\n” threadid:将线程转换为16进制
jstack pid | grep threadid(16进制)

一个死锁的例子:

    public static void main(String[] args) {
        Object lock1  = new Object();
        Object lock2 = new Object();
        Thread thread1 = new Thread(new Runnable() {
            @Override
            public void run() {
                synchronized (lock1) {
                    log.info("lock1 lock success by thread1");
                    try {
                        Thread.sleep(1000);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                    synchronized (lock2) {
                        log.info("lock2 lock success by thread1");
                    }
                }
            }
        });
        Thread thread2 = new Thread(new Runnable() {
            @Override
            public void run() {
                synchronized (lock2) {
                    log.info("lock2 lock success by thread2");
                    try {
                        Thread.sleep(1000);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                    synchronized (lock1) {
                        log.info("lock1 lock success by thread2");
                    }
                }
            }
        });
        thread1.setName("lalala123");
        thread2.setName("lalala456");
        thread1.start();
        thread2.start();
    }
$ printf "%x\n" 21364
5374

$ jstack 33404 | grep 5374
"lalala456" #13 prio=5 os_prio=0 tid=0x15a11400 nid=0x5374 waiting for monitor entry [0x162bf000]

可以看出哪里出了死锁,大家可以看看

Found one Java-level deadlock:
=============================
"lalala456":
  waiting to lock monitor 0x14c6c214 (object 0x04ac7de0, a java.lang.Object),
  which is held by "lalala123"
"lalala123":
  waiting to lock monitor 0x14c6ad14 (object 0x04ac7de8, a java.lang.Object),
  which is held by "lalala456"

Java stack information for the threads listed above:
===================================================
"lalala456":
        at com.liyz.api.web.controller.error.ErrorApiController$2.run(ErrorApiController.java:83)
        - waiting to lock <0x04ac7de0> (a java.lang.Object)
        - locked <0x04ac7de8> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:745)
"lalala123":
        at com.liyz.api.web.controller.error.ErrorApiController$1.run(ErrorApiController.java:67)
        - waiting to lock <0x04ac7de8> (a java.lang.Object)
        - locked <0x04ac7de0> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:745)

Found 1 deadlock.

3.jmap:Memory Map

作用:查看堆内存使用情况,一般结合jhat来使用
语法:
jmap [option] pid
jmap [option] executable core
jmap [option] [server-id@]remote-hostname-or-ip
注:如果运行在64位jvm上,需要指定 -j-d64 命令选项参数
jmap -permstat pid:打印进程的类加载器和类加载器的持久代对象,输出:类加载器名称、对象是否存活、对象地址、父类加载器、已加载的类大小等信息
命令行参数:
-heap:打印出堆内存的使用情况
-histo[:live]:打印出堆中对象数目、大小统计,+live可以打印出存活的对象情况
-clstats:to print class loader statistics
-finalizerinfo:to print information on objects awaiting finalization
-dump::to dump java heap in hprof binary format
dump-options:
live dump only live objects; if not specified,
all objects in the heap are dumped.
format=b binary format

$ jmap -heap  33404
Attaching to process ID 33404, please wait...
Debugger attached successfully.
Client compiler detected.
JVM version is 25.111-b14

using thread-local object allocation.
Mark Sweep Compact GC

Heap Configuration:
   MinHeapFreeRatio         = 40
   MaxHeapFreeRatio         = 70
   MaxHeapSize              = 268435456 (256.0MB)
   NewSize                  = 5570560 (5.3125MB)
   MaxNewSize               = 89456640 (85.3125MB)
   OldSize                  = 11206656 (10.6875MB)
   NewRatio                 = 2
   SurvivorRatio            = 8
   MetaspaceSize            = 12582912 (12.0MB)
   CompressedClassSpaceSize = 1073741824 (1024.0MB)
   MaxMetaspaceSize         = 4294901760 (4095.9375MB)
   G1HeapRegionSize         = 0 (0.0MB)

Heap Usage:
New Generation (Eden + 1 Survivor Space):
   capacity = 5046272 (4.8125MB)
   used     = 4024528 (3.8380889892578125MB)
   free     = 1021744 (0.9744110107421875MB)
   79.75249847808442% used
Eden Space:
   capacity = 4521984 (4.3125MB)
   used     = 3589992 (3.4236831665039062MB)
   free     = 931992 (0.8888168334960938MB)
   79.38975458559783% used
From Space:
   capacity = 524288 (0.5MB)
   used     = 434536 (0.41440582275390625MB)
   free     = 89752 (0.08559417724609375MB)
   82.88116455078125% used
To Space:
   capacity = 524288 (0.5MB)
   used     = 0 (0.0MB)
   free     = 524288 (0.5MB)
   0.0% used
tenured generation:
   capacity = 11206656 (10.6875MB)
   used     = 1655408 (1.5787200927734375MB)
   free     = 9551248 (9.108779907226562MB)
   14.771649990862572% used

4948 interned Strings occupying 334288 bytes.
$ jmap -histo:live 33404

 num     #instances         #bytes  class name
----------------------------------------------
   1:          8794         755856  [C
   2:          1084         755200  [B
   3:           544         178416  [I
   4:          8625         138000  java.lang.String
   5:          1369         134400  java.lang.Class
   6:          1178          81472  [Ljava.lang.Object;
   7:          1730          41520  java.util.HashMap$Node
   8:           632          27232  [Ljava.lang.String;
   9:           837          26784  java.util.TreeMap$Entry
  10:           302          26576  java.lang.reflect.Method
  11:          1105          26520  java.util.concurrent.ConcurrentHashMap$Node
  12:           810          25920  java.util.LinkedHashMap$Entry
  13:           138          23992  [Ljava.util.HashMap$Node;
  14:           599          19168  java.lang.ref.Finalizer
  15:           275          17600  java.net.URL
  16:            33          12016  [Ljava.util.concurrent.ConcurrentHashMap$Node;
  17:           161          10304  java.lang.reflect.Field
  18:           200           9600  java.util.zip.ZipFile$ZipFileInputStream
  19:           188           9024  java.util.zip.ZipFile$ZipFileInflaterInputStream
  20:           107           8560  [Ljava.util.WeakHashMap$Entry;
  21:            94           8272  java.util.jar.JarFile$JarFileEntry
  22:           913           7304  java.lang.Object
  23:            19           7144  java.lang.Thread
  24:           131           6288  sun.misc.URLClassPath$JarLoader
  25:           154           6160  java.util.HashMap
  26:           103           5768  java.util.jar.JarFile
  27:           168           5376  java.lang.ref.SoftReference
  28:           223           5352  java.io.ExpiringCache$Entry
  29:            73           5256  java.lang.reflect.Constructor
  30:           107           5136  java.util.WeakHashMap
  31:           107           5136  sun.nio.cs.UTF_8$Encoder
  32:           208           4992  java.util.LinkedList$Node
  33:            90           4320  java.util.zip.Inflater
  34:           265           4240  java.lang.Integer
  35:           247           4104  [Ljava.lang.Class;
  36:           169           4056  java.util.ArrayList
  37:            52           3776  [Ljava.lang.reflect.Method;
  38:           148           3552  java.util.Hashtable$Entry
  39:            73           3504  java.lang.Class$ReflectionData
  40:           103           3296  java.util.zip.ZipCoder
  41:           123           2952  org.xml.sax.helpers.LocatorImpl
  42:           115           2760  java.lang.ref.ReferenceQueue
  43:           108           2592  java.util.LinkedList
  44:           103           2472  java.util.ArrayDeque
  45:            51           2448  java.lang.Package
  46:           153           2448  java.util.jar.Attributes$Name
  47:            38           2432  java.util.concurrent.ConcurrentHashMap
  48:            57           2280  ch.qos.logback.core.status.InfoStatus
  49:            44           1760  sun.util.locale.LocaleObjectCache$CacheEntry
  50:            12           1728  java.text.DecimalFormat
  51:            52           1664  ch.qos.logback.core.joran.event.StartEvent
  52:            17           1632  sun.util.calendar.Gregorian$Date
  53:             1           1536  [[B
  54:            90           1440  java.util.zip.ZStreamRef
  55:            11           1384  [Ljava.util.Hashtable$Entry;
  56:            52           1248  ch.qos.logback.core.joran.event.EndEvent
  57:            11           1232  java.util.GregorianCalendar
  58:            35           1120  java.io.ObjectStreamField
  59:             2           1064  [Ljava.lang.invoke.MethodHandle;
  60:             1           1040  [Ljava.lang.Integer;
  61:             1           1040  [[C
  62:            39            936  ch.qos.logback.core.spi.ContextAwareBase
  63:           117            936  java.lang.ref.ReferenceQueue$Lock
  64:            17            880  [Z
  65:            36            864  sun.reflect.NativeConstructorAccessorImpl
  66:            18            864  sun.util.calendar.ZoneInfo
  67:            15            856  [Ljava.lang.reflect.Field;
  68:            53            848  ch.qos.logback.core.joran.spi.ElementPath
  69:            52            832  org.xml.sax.helpers.AttributesImpl
  70:            33            792  java.io.File
  71:            12            768  java.text.DecimalFormatSymbols
  72:            11            704  java.text.SimpleDateFormat
  73:            44            704  java.util.jar.Attributes
  74:            12            672  java.text.DateFormatSymbols
  75:            21            672  sun.util.locale.BaseLocale
  76:            21            672  sun.util.locale.BaseLocale$Key
  77:            27            648  java.util.concurrent.locks.ReentrantLock$NonfairSync
  78:             8            640  [S
  79:            19            608  ch.qos.logback.core.joran.event.BodyEvent
  80:            19            608  java.util.PropertyPermission
  81:            15            600  java.security.AccessControlContext
  82:            36            584  [Ljava.lang.reflect.Constructor;
  83:            36            576  sun.reflect.DelegatingConstructorAccessorImpl
  84:            35            560  ch.qos.logback.core.joran.spi.ElementSelector
  85:            16            512  java.io.FileDescriptor
  86:            21            504  java.util.Locale
  87:            21            504  java.util.Locale$LocaleKey
  88:            12            480  ch.qos.logback.classic.Logger
  89:            12            480  java.text.DigitList
  90:            20            480  java.util.Collections$UnmodifiableMap
  91:            29            464  ch.qos.logback.core.pattern.LiteralConverter
  92:            19            456  java.lang.RuntimePermission
  93:            14            448  java.lang.ThreadLocal$ThreadLocalMap$Entry
  94:            14            448  java.security.CodeSource
  95:             9            432  java.util.ResourceBundle$CacheKey
  96:            27            432  java.util.concurrent.locks.ReentrantLock
  97:             4            416  [J
  98:             1            384  java.lang.ref.Finalizer$FinalizerThread
  99:             8            384  java.util.concurrent.ThreadPoolExecutor$Worker
 100:            12            384  java.util.concurrent.locks.AbstractQueuedSynchronizer$Node
 101:            16            384  sun.reflect.NativeMethodAccessorImpl
 102:             1            376  java.lang.ref.Reference$ReferenceHandler
 103:             3            360  ch.qos.logback.core.rolling.helper.RollingCalendar
 104:             9            360  com.sun.org.apache.xerces.internal.utils.XMLSecurityManager$Limit
 105:             9            360  java.util.ResourceBundle$BundleReference
 106:             9            360  java.util.WeakHashMap$Entry
 107:            11            352  java.security.ProtectionDomain
 108:            14            336  [Ljava.io.ObjectStreamField;
 109:             6            336  java.nio.DirectByteBuffer
 110:            14            336  java.util.Date
 111:            10            320  java.io.FileInputStream
 112:            10            320  java.lang.OutOfMemoryError
 113:             5            320  java.util.regex.Pattern
 114:            10            320  java.util.regex.Pattern$Curly
 115:             3            312  [D
 116:            19            304  sun.misc.MetaIndex
 117:             6            288  ch.qos.logback.core.rolling.helper.DateTokenConverter
 118:            12            288  java.lang.Class$AnnotationData
 119:             6            288  java.nio.DirectLongBufferU
 120:            18            288  java.text.DateFormat$Field
 121:             6            288  java.util.Properties
 122:             9            288  java.util.ResourceBundle$LoaderReference
 123:            18            288  java.util.concurrent.CopyOnWriteArrayList
 124:             3            264  ch.qos.logback.core.rolling.RollingFileAppender
 125:             3            264  ch.qos.logback.core.rolling.TimeBasedRollingPolicy
 126:            11            264  ch.qos.logback.core.util.CachingDateFormatter
 127:            11            264  java.util.Stack
 128:             4            256  ch.qos.logback.classic.PatternLayout
 129:             8            256  java.io.FilePermission
 130:            16            256  sun.reflect.DelegatingMethodAccessorImpl
 131:            10            240  com.sun.org.apache.xerces.internal.impl.XMLScanner$NameType
 132:            10            240  java.security.Permissions
 133:             5            240  java.util.TreeMap
 134:            10            240  java.util.regex.Pattern$GroupTail
 135:             6            240  sun.util.locale.provider.LocaleResources$ResourceReference
 136:             7            224  [Ljava.util.regex.Pattern$Node;
 137:             9            216  java.util.Vector
 138:             7            200  [Ljava.lang.Boolean;
 139:             5            200  java.util.Hashtable
 140:             4            192  ch.qos.logback.classic.encoder.PatternLayoutEncoder
 141:             4            192  ch.qos.logback.classic.pattern.DateConverter
 142:            12            192  ch.qos.logback.core.joran.spi.HostClassAndPropertyDouble
 143:             3            192  ch.qos.logback.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy
 144:             6            192  ch.qos.logback.core.rolling.helper.FileNamePattern
 145:             8            192  ch.qos.logback.core.util.COWArrayList
 146:             6            192  java.io.FileOutputStream
 147:            12            192  java.lang.ThreadLocal
 148:             8            192  java.math.RoundingMode
 149:             8            192  java.security.BasicPermissionCollection
 150:             4            192  org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter
 151:             2            184  [Ljava.text.DateFormat$Field;
 152:            11            176  [Ljava.security.Principal;
 153:            11            176  java.security.ProtectionDomain$Key
 154:            11            176  java.text.NumberFormat$Field
 155:            11            176  java.util.regex.Pattern$SliceI
 156:             3            168  ch.qos.logback.core.rolling.helper.TimeBasedArchiveRemover
 157:             7            168  java.net.NetPermission
 158:             7            168  java.util.regex.Pattern$Branch
 159:             7            168  sun.misc.URLClassPath$FileLoader
 160:             2            160  [Ljava.lang.ThreadLocal$ThreadLocalMap$Entry;
 161:            10            160  java.security.CryptoPrimitive
 162:            10            160  java.util.regex.Pattern$GroupHead
 163:             6            144  ch.qos.logback.core.joran.util.beans.BeanDescription
 164:             9            144  ch.qos.logback.core.rolling.helper.PeriodicityType
 165:             6            144  com.sun.org.apache.xerces.internal.util.Status
 166:             9            144  java.io.FilePermissionCollection
 167:             9            144  java.util.HashSet
 168:             9            144  java.util.concurrent.atomic.AtomicBoolean
 169:             4            128  ch.qos.logback.classic.pattern.FileOfCallerConverter
 170:             4            128  ch.qos.logback.classic.pattern.LevelConverter
 171:             4            128  ch.qos.logback.classic.pattern.LineOfCallerConverter
 172:             4            128  ch.qos.logback.classic.pattern.LineSeparatorConverter
 173:             4            128  ch.qos.logback.classic.pattern.MessageConverter
 174:             4            128  ch.qos.logback.classic.pattern.ThreadConverter
 175:             3            120  ch.qos.logback.core.recovery.ResilientFileOutputStream
 176:             5            120  com.sun.org.apache.xerces.internal.utils.XMLSecurityManager$State
 177:             5            120  java.io.BufferedOutputStream
 178:             5            120  sun.misc.FloatingDecimal$PreparedASCIIToBinaryBuffer
 179:             3            120  sun.misc.URLClassPath
 180:             5            120  sun.util.locale.provider.LocaleProviderAdapter$Type
 181:             7            112  [Lch.qos.logback.core.filter.Filter;
 182:             2            112  [Ljava.lang.Thread;
 183:             2            112  [Ljava.security.CryptoPrimitive;
 184:             1            112  [[Ljava.lang.String;
 185:             7            112  ch.qos.logback.classic.Level
 186:             7            112  com.sun.org.apache.xerces.internal.util.FeatureState
 187:             2            112  java.io.ExpiringCache$1
 188:             2            112  java.net.SocketPermission
 189:             2            112  java.util.LinkedHashMap
 190:             7            112  java.util.concurrent.atomic.AtomicInteger
 191:             7            112  java.util.jar.Manifest
 192:             7            112  java.util.regex.Pattern$BranchConn
 193:             7            112  java.util.regex.Pattern$Ctype
 194:             6            104  [Lch.qos.logback.core.Appender;
 195:             1             96  ch.qos.logback.classic.LoggerContext
 196:             6             96  ch.qos.logback.core.util.FileSize
 197:             2             96  java.lang.ThreadGroup
 198:             2             96  java.nio.HeapByteBuffer
 199:             3             96  java.util.Collections$SynchronizedMap
 200:             6             96  java.util.HashMap$EntrySet
 201:             4             96  java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject
 202:             6             96  sun.misc.PerfCounter
 203:             2             96  sun.nio.cs.StreamEncoder
 204:             6             96  sun.security.util.DisabledAlgorithmConstraints$KeySizeConstraint$Operator
 205:             2             88  [Lch.qos.logback.core.rolling.helper.PeriodicityType;
 206:             1             88  sun.misc.Launcher$AppClassLoader
 207:             1             80  [Ljava.util.concurrent.RunnableScheduledFuture;
 208:             5             80  ch.qos.logback.core.pattern.parser.TokenStream$TokenizerState
 209:             5             80  ch.qos.logback.core.subst.Token$Type
 210:             5             80  ch.qos.logback.core.util.AggregationType
 211:             5             80  com.sun.org.apache.xerces.internal.util.PropertyState
 212:             5             80  com.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager$State
 213:             2             80  java.io.BufferedWriter
 214:             5             80  java.util.Collections$UnmodifiableRandomAccessList
 215:             5             80  java.util.regex.Pattern$Slice
 216:             5             80  java.util.regex.Pattern$Start
 217:             1             80  sun.misc.Launcher$ExtClassLoader
 218:             1             72  ch.qos.logback.core.ConsoleAppender
 219:             3             72  ch.qos.logback.core.joran.action.AppenderRefAction
 220:             3             72  ch.qos.logback.core.joran.action.NOPAction
 221:             3             72  ch.qos.logback.core.joran.action.PropertyAction
 222:             3             72  ch.qos.logback.core.rolling.helper.Compressor
 223:             3             72  ch.qos.logback.core.rolling.helper.RenameUtil
 224:             3             72  com.sun.org.apache.xerces.internal.utils.XMLSecurityManager$NameMap
 225:             3             72  java.security.SecurityPermission
 226:             1             72  java.util.concurrent.ScheduledThreadPoolExecutor
 227:             3             72  java.util.regex.Pattern$3
 228:             3             72  java.util.regex.Pattern$SingleI
 229:             3             72  sun.misc.JarIndex
 230:             3             72  sun.security.provider.PolicyFile$PolicyEntry
 231:             1             72  sun.util.locale.provider.JRELocaleProviderAdapter
 232:             3             72  sun.util.locale.provider.LocaleServiceProviderPool
 233:             3             64  [Ljava.security.ProtectionDomain;
 234:             2             64  ch.qos.logback.classic.filter.ThresholdFilter
 235:             4             64  ch.qos.logback.core.pattern.parser.Token
 236:             4             64  ch.qos.logback.core.spi.AppenderAttachableImpl
 237:             4             64  ch.qos.logback.core.spi.FilterAttachableImpl
 238:             4             64  ch.qos.logback.core.subst.Token
 239:             2             64  java.io.ExpiringCache
 240:             2             64  java.io.PrintStream
 241:             2             64  java.lang.ClassValue$Entry
 242:             2             64  java.lang.VirtualMachineError
 243:             4             64  java.util.HashMap$KeySet
 244:             2             64  java.util.Locale$Category
 245:             1             64  java.util.ResourceBundle$RBClassLoader
 246:             1             64  java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask
 247:             4             64  java.util.concurrent.atomic.AtomicLong
 248:             2             64  sun.misc.FloatingDecimal$BinaryToASCIIBuffer
 249:             2             64  sun.util.locale.provider.LocaleResources
 250:             1             56  [F
 251:             1             56  [Lcom.sun.org.apache.xerces.internal.impl.XMLScanner$NameType;
 252:             2             48  [Lch.qos.logback.core.spi.FilterReply;
 253:             1             48  [Lcom.sun.org.apache.xerces.internal.utils.XMLSecurityManager$Limit;
 254:             3             48  [Ljava.lang.StackTraceElement;
 255:             1             48  [Ljava.math.RoundingMode;
 256:             2             48  ch.qos.logback.classic.joran.action.LevelAction
 257:             3             48  ch.qos.logback.core.joran.action.ActionUtil$Scope
 258:             2             48  ch.qos.logback.core.joran.spi.ConsoleTarget
 259:             1             48  ch.qos.logback.core.joran.spi.InterpretationContext
 260:             1             48  ch.qos.logback.core.joran.spi.Interpreter
 261:             3             48  ch.qos.logback.core.rolling.helper.CompressionMode
 262:             3             48  ch.qos.logback.core.spi.FilterReply
 263:             3             48  ch.qos.logback.core.subst.Tokenizer$TokenizerState
 264:             3             48  com.sun.org.apache.xerces.internal.impl.dv.dtd.ListDatatypeValidator
 265:             2             48  com.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager$Property
 266:             2             48  java.io.OutputStreamWriter
 267:             2             48  java.lang.StringCoding$StringEncoder
 268:             2             48  java.lang.ThreadLocal$ThreadLocalMap
 269:             2             48  java.lang.ref.ReferenceQueue$Null
 270:             3             48  java.nio.charset.CodingErrorAction
 271:             3             48  java.text.AttributedCharacterIterator$Attribute
 272:             3             48  java.util.Arrays$ArrayList
 273:             2             48  java.util.BitSet
 274:             3             48  java.util.Collections$SynchronizedSet
 275:             3             48  java.util.HashMap$Values
 276:             3             48  java.util.concurrent.ConcurrentHashMap$KeySetView
 277:             3             48  java.util.concurrent.atomic.AtomicMarkableReference
 278:             3             48  java.util.concurrent.atomic.AtomicMarkableReference$Pair
 279:             2             48  java.util.regex.Pattern$Ques
 280:             3             48  java.util.regex.Pattern$Single
 281:             3             48  sun.misc.FloatingDecimal$ExceptionalBinaryToASCIIBuffer
 282:             1             48  sun.text.resources.FormatData
 283:             1             48  sun.text.resources.zh.FormatData_zh
 284:             1             48  sun.text.resources.zh.FormatData_zh_CN
 285:             3             48  sun.util.resources.ParallelListResourceBundle$KeySet
 286:             1             40  [Lcom.sun.org.apache.xerces.internal.util.Status;
 287:             1             40  [Ljava.util.concurrent.TimeUnit;
 288:             1             40  [Lsun.security.util.DisabledAlgorithmConstraints$KeySizeConstraint$Operator;
 289:             1             40  ch.qos.logback.classic.filter.LevelFilter
 290:             1             40  ch.qos.logback.core.BasicStatusManager
 291:             1             40  ch.qos.logback.core.joran.action.DefinePropertyAction
 292:             1             40  java.lang.ProcessEnvironment
 293:             1             40  java.util.concurrent.LinkedBlockingQueue
 294:             1             40  sun.nio.cs.StandardCharsets$Aliases
 295:             1             40  sun.nio.cs.StandardCharsets$Cache
 296:             1             40  sun.nio.cs.StandardCharsets$Classes
 297:             1             40  sun.util.resources.CalendarData
 298:             1             40  sun.util.resources.CurrencyNames
 299:             1             40  sun.util.resources.TimeZoneNames
 300:             1             40  sun.util.resources.en.TimeZoneNames_en
 301:             1             40  sun.util.resources.zh.CalendarData_zh
 302:             1             40  sun.util.resources.zh.CurrencyNames_zh_CN
 303:             1             32  [Lch.qos.logback.core.pattern.parser.TokenStream$TokenizerState;
 304:             1             32  [Lch.qos.logback.core.subst.Token$Type;
 305:             1             32  [Lch.qos.logback.core.util.AggregationType;
 306:             1             32  [Lcom.sun.org.apache.xerces.internal.utils.XMLSecurityManager$State;
 307:             1             32  [Lcom.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager$State;
 308:             1             32  [Ljava.lang.OutOfMemoryError;
 309:             1             32  [Ljava.lang.ThreadGroup;
 310:             2             32  [Ljava.lang.annotation.Annotation;
 311:             1             32  [Lsun.util.locale.provider.LocaleProviderAdapter$Type;
 312:             1             32  ch.qos.logback.classic.joran.JoranConfigurator
 313:             1             32  ch.qos.logback.classic.joran.ReconfigureOnChangeTask
 314:             1             32  ch.qos.logback.classic.joran.action.ConfigurationAction
 315:             1             32  ch.qos.logback.classic.joran.action.EvaluatorAction
 316:             1             32  ch.qos.logback.classic.joran.action.LoggerAction
 317:             1             32  ch.qos.logback.classic.joran.action.LoggerContextListenerAction
 318:             1             32  ch.qos.logback.classic.joran.action.ReceiverAction
 319:             1             32  ch.qos.logback.classic.joran.action.RootLoggerAction
 320:             4             32  ch.qos.logback.classic.pattern.EnsureExceptionHandling
 321:             1             32  ch.qos.logback.classic.pattern.color.HighlightingCompositeConverter
 322:             1             32  ch.qos.logback.core.helpers.CyclicBuffer
 323:             1             32  ch.qos.logback.core.joran.action.AppenderAction
 324:             1             32  ch.qos.logback.core.joran.action.IncludeAction
 325:             1             32  ch.qos.logback.core.joran.action.NestedBasicPropertyIA
 326:             1             32  ch.qos.logback.core.joran.action.NestedComplexPropertyIA
 327:             1             32  ch.qos.logback.core.joran.action.ParamAction
 328:             1             32  ch.qos.logback.core.joran.action.ShutdownHookAction
 329:             1             32  ch.qos.logback.core.joran.action.StatusListenerAction
 330:             1             32  ch.qos.logback.core.joran.spi.ConfigurationWatchList
 331:             1             32  ch.qos.logback.core.joran.util.beans.BeanDescriptionCache
 332:             2             32  ch.qos.logback.core.subst.Node$Type
 333:             1             32  com.sun.org.apache.xerces.internal.impl.XMLEntityScanner$1
 334:             1             32  java.io.BufferedInputStream
 335:             2             32  java.io.File$PathStatus
 336:             1             32  java.lang.ArithmeticException
 337:             2             32  java.lang.Boolean
 338:             1             32  java.lang.ClassLoader$NativeLibrary
 339:             1             32  java.lang.NullPointerException
 340:             2             32  java.nio.ByteOrder
 341:             2             32  java.nio.charset.CoderResult
 342:             1             32  java.text.DontCareFieldPosition
 343:             2             32  java.util.LinkedHashMap$LinkedKeySet
 344:             1             32  java.util.ResourceBundle$1
 345:             1             32  java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue
 346:             2             32  java.util.concurrent.atomic.AtomicReference
 347:             1             32  java.util.concurrent.atomic.AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl
 348:             1             32  javax.management.ObjectName
 349:             2             32  sun.misc.NativeSignalHandler
 350:             2             32  sun.misc.Signal
 351:             1             32  sun.nio.cs.ext.ExtendedCharsets
 352:             1             32  sun.security.provider.PolicyFile
 353:             1             32  sun.security.provider.PolicyFile$PolicyInfo
 354:             1             24  [Lch.qos.logback.core.joran.action.ActionUtil$Scope;
 355:             1             24  [Lch.qos.logback.core.joran.spi.ConsoleTarget;
 356:             1             24  [Lch.qos.logback.core.rolling.helper.CompressionMode;
 357:             1             24  [Lch.qos.logback.core.subst.Node$Type;
 358:             1             24  [Lch.qos.logback.core.subst.Tokenizer$TokenizerState;
 359:             1             24  [Lcom.sun.org.apache.xerces.internal.utils.XMLSecurityManager$NameMap;
 360:             1             24  [Lcom.sun.org.apache.xerces.internal.utils.XMLSecurityPropertyManager$Property;
 361:             1             24  [Ljava.io.File$PathStatus;
 362:             1             24  [Ljava.util.Locale$Category;
 363:             1             24  ch.qos.logback.classic.joran.action.ConsolePluginAction
 364:             1             24  ch.qos.logback.classic.joran.action.ContextNameAction
 365:             1             24  ch.qos.logback.classic.joran.action.InsertFromJNDIAction
 366:             1             24  ch.qos.logback.classic.joran.action.JMXConfiguratorAction
 367:             1             24  ch.qos.logback.classic.sift.SiftAction
 368:             1             24  ch.qos.logback.classic.spi.LoggerContextVO
 369:             1             24  ch.qos.logback.core.joran.action.ContextPropertyAction
 370:             1             24  ch.qos.logback.core.joran.action.ConversionRuleAction
 371:             1             24  ch.qos.logback.core.joran.action.NewRuleAction
 372:             1             24  ch.qos.logback.core.joran.action.TimestampAction
 373:             1             24  ch.qos.logback.core.joran.conditional.ElseAction
 374:             1             24  ch.qos.logback.core.joran.conditional.IfAction
 375:             1             24  ch.qos.logback.core.joran.conditional.ThenAction
 376:             1             24  ch.qos.logback.core.joran.spi.CAI_WithLocatorSupport
 377:             1             24  ch.qos.logback.core.joran.spi.EventPlayer
 378:             1             24  ch.qos.logback.core.joran.spi.SimpleRuleStore
 379:             1             24  ch.qos.logback.core.joran.util.beans.BeanDescriptionFactory
 380:             3             24  ch.qos.logback.core.spi.LogbackLock
 381:             1             24  java.io.WinNTFileSystem
 382:             1             24  java.lang.invoke.MethodHandleImpl$4
 383:             1             24  java.lang.reflect.ReflectPermission
 384:             1             24  java.util.Collections$SynchronizedRandomAccessList
 385:             1             24  java.util.Currency
 386:             1             24  java.util.PropertyPermissionCollection
 387:             1             24  java.util.RegularEnumSet
 388:             1             24  java.util.concurrent.Executors$DefaultThreadFactory
 389:             1             24  org.slf4j.helpers.SubstituteLoggerFactory
 390:             1             24  org.slf4j.impl.StaticLoggerBinder
 391:             3             24  sun.net.www.protocol.jar.Handler
 392:             1             24  sun.nio.cs.ISO_8859_1
 393:             1             24  sun.nio.cs.StandardCharsets
 394:             1             24  sun.nio.cs.US_ASCII
 395:             1             24  sun.nio.cs.UTF_16
 396:             1             24  sun.nio.cs.UTF_16BE
 397:             1             24  sun.nio.cs.UTF_16LE
 398:             1             24  sun.nio.cs.UTF_8
 399:             1             24  sun.nio.cs.ext.GBK
 400:             1             24  sun.security.util.DisabledAlgorithmConstraints
 401:             1             24  sun.security.util.DisabledAlgorithmConstraints$KeySizeConstraint
 402:             1             16  [Ljava.lang.ClassValue$Entry;
 403:             1             16  [Ljava.lang.Enum;
 404:             1             16  [Ljava.lang.Throwable;
 405:             1             16  [Ljava.security.cert.Certificate;
 406:             1             16  [Ljava.text.FieldPosition;
 407:             1             16  [Ljavax.management.ObjectName$Property;
 408:             1             16  [Lsun.launcher.LauncherHelper;
 409:             1             16  [Lsun.misc.JavaSecurityProtectionDomainAccess$ProtectionDomainCache;
 410:             1             16  ch.qos.logback.classic.selector.DefaultContextSelector
 411:             1             16  ch.qos.logback.classic.spi.TurboFilterList
 412:             1             16  ch.qos.logback.classic.util.ContextSelectorStaticBinder
 413:             1             16  ch.qos.logback.classic.util.LogbackMDCAdapter
 414:             1             16  ch.qos.logback.core.joran.spi.DefaultNestedComponentRegistry
 415:             1             16  ch.qos.logback.core.util.ExecutorServiceUtil$1
 416:             1             16  com.liyz.api.web.controller.error.ErrorApiController$1
 417:             1             16  com.liyz.api.web.controller.error.ErrorApiController$2
 418:             1             16  com.sun.org.apache.xerces.internal.impl.Constants$ArrayEnumeration
 419:             2             16  com.sun.org.apache.xerces.internal.impl.dv.dtd.ENTITYDatatypeValidator
 420:             1             16  java.lang.ClassValue$Version
 421:             1             16  java.lang.Long
 422:             1             16  java.lang.StringBuilder
 423:             1             16  java.net.SocketPermissionCollection
 424:             1             16  java.nio.charset.CoderResult$1
 425:             1             16  java.nio.charset.CoderResult$2
 426:             1             16  java.security.AllPermission
 427:             1             16  java.security.Policy$PolicyInfo
 428:             1             16  java.security.Policy$UnsupportedEmptyCollection
 429:             1             16  java.security.ProtectionDomain$2$1
 430:             1             16  java.text.DontCareFieldPosition$1
 431:             1             16  java.util.Collections$EmptyList
 432:             1             16  java.util.Collections$EmptyMap
 433:             1             16  java.util.Collections$SetFromMap
 434:             1             16  java.util.Collections$UnmodifiableSet
 435:             1             16  java.util.Hashtable$EntrySet
 436:             1             16  java.util.Locale$Cache
 437:             1             16  java.util.ResourceBundle$Control$CandidateListCache
 438:             1             16  java.util.WeakHashMap$KeySet
 439:             1             16  java.util.concurrent.Executors$RunnableAdapter
 440:             1             16  java.util.concurrent.LinkedBlockingQueue$Node
 441:             1             16  java.util.concurrent.TimeUnit$1
 442:             1             16  java.util.concurrent.TimeUnit$2
 443:             1             16  java.util.concurrent.TimeUnit$3
 444:             1             16  java.util.concurrent.TimeUnit$4
 445:             1             16  java.util.concurrent.TimeUnit$5
 446:             1             16  java.util.concurrent.TimeUnit$6
 447:             1             16  java.util.concurrent.TimeUnit$7
 448:             1             16  java.util.regex.Pattern$4
 449:             1             16  java.util.regex.Pattern$CharProperty$1
 450:             1             16  java.util.regex.Pattern$Dot
 451:             1             16  java.util.regex.Pattern$LastNode
 452:             1             16  java.util.regex.Pattern$Node
 453:             1             16  sun.launcher.LauncherHelper
 454:             1             16  sun.misc.FloatingDecimal$1
 455:             1             16  sun.misc.Launcher
 456:             1             16  sun.net.ProgressMonitor
 457:             1             16  sun.nio.cs.ThreadLocalCoders$1
 458:             1             16  sun.nio.cs.ThreadLocalCoders$2
 459:             1             16  sun.security.util.DisabledAlgorithmConstraints$KeySizeConstraints
 460:             1             16  sun.util.calendar.Gregorian
 461:             1             16  sun.util.locale.BaseLocale$Cache
 462:             1             16  sun.util.locale.provider.CalendarDataProviderImpl
 463:             1             16  sun.util.locale.provider.CalendarProviderImpl
 464:             1             16  sun.util.locale.provider.CurrencyNameProviderImpl
 465:             1             16  sun.util.locale.provider.DateFormatSymbolsProviderImpl
 466:             1             16  sun.util.locale.provider.DecimalFormatSymbolsProviderImpl
 467:             1             16  sun.util.locale.provider.NumberFormatProviderImpl
 468:             1             16  sun.util.locale.provider.SPILocaleProviderAdapter
 469:             1             16  sun.util.locale.provider.TimeZoneNameProviderImpl
 470:             1             16  sun.util.resources.LocaleData
 471:             1              8  ch.qos.logback.core.joran.spi.ConsoleTarget$1
 472:             1              8  ch.qos.logback.core.joran.spi.ConsoleTarget$2
 473:             1              8  ch.qos.logback.core.joran.util.ConfigurationWatchListUtil
 474:             1              8  com.sun.org.apache.xerces.internal.impl.dv.dtd.IDDatatypeValidator
 475:             1              8  com.sun.org.apache.xerces.internal.impl.dv.dtd.IDREFDatatypeValidator
 476:             1              8  com.sun.org.apache.xerces.internal.impl.dv.dtd.NMTOKENDatatypeValidator
 477:             1              8  com.sun.org.apache.xerces.internal.impl.dv.dtd.NOTATIONDatatypeValidator
 478:             1              8  com.sun.org.apache.xerces.internal.impl.dv.dtd.StringDatatypeValidator
 479:             1              8  com.sun.org.apache.xerces.internal.utils.SecuritySupport
 480:             1              8  java.io.FileDescriptor$1
 481:             1              8  java.lang.CharacterDataLatin1
 482:             1              8  java.lang.ClassValue$Identity
 483:             1              8  java.lang.ProcessEnvironment$EntryComparator
 484:             1              8  java.lang.ProcessEnvironment$NameComparator
 485:             1              8  java.lang.Runtime
 486:             1              8  java.lang.String$CaseInsensitiveComparator
 487:             1              8  java.lang.System$2
 488:             1              8  java.lang.Terminator$1
 489:             1              8  java.lang.invoke.MemberName$Factory
 490:             1              8  java.lang.invoke.MethodHandleImpl$2
 491:             1              8  java.lang.invoke.MethodHandleImpl$3
 492:             1              8  java.lang.ref.Reference$1
 493:             1              8  java.lang.ref.Reference$Lock
 494:             1              8  java.lang.reflect.ReflectAccess
 495:             1              8  java.net.URLClassLoader$7
 496:             1              8  java.nio.Bits$1
 497:             1              8  java.security.ProtectionDomain$2
 498:             1              8  java.security.ProtectionDomain$JavaSecurityAccessImpl
 499:             1              8  java.util.Collections$EmptyIterator
 500:             1              8  java.util.Collections$EmptySet
 501:             1              8  java.util.Currency$CurrencyNameGetter
 502:             1              8  java.util.ResourceBundle$Control
 503:             1              8  java.util.concurrent.ThreadPoolExecutor$AbortPolicy
 504:             1              8  java.util.jar.JavaUtilJarAccessImpl
 505:             1              8  java.util.zip.ZipFile$1
 506:             1              8  javax.xml.parsers.SecuritySupport
 507:             1              8  org.slf4j.helpers.NOPLoggerFactory
 508:             1              8  org.slf4j.impl.StaticMDCBinder
 509:             1              8  sun.misc.ASCIICaseInsensitiveComparator
 510:             1              8  sun.misc.Launcher$Factory
 511:             1              8  sun.misc.Perf
 512:             1              8  sun.misc.Unsafe
 513:             1              8  sun.net.DefaultProgressMeteringPolicy
 514:             1              8  sun.net.www.protocol.file.Handler
 515:             1              8  sun.reflect.ReflectionFactory
 516:             1              8  sun.security.util.AlgorithmDecomposer
 517:             1              8  sun.util.locale.provider.AuxLocaleProviderAdapter$NullProvider
 518:             1              8  sun.util.locale.provider.CalendarDataUtility$CalendarWeekParameterGetter
 519:             1              8  sun.util.locale.provider.TimeZoneNameUtility$TimeZoneNameGetter
 520:             1              8  sun.util.resources.LocaleData$LocaleDataResourceBundleControl
Total         35352        2523792
$ jmap -dump:format=b,file=/tmp/dump.dat 33404
Dumping heap to C:\Users\liyangzhen\AppData\Local\Temp\dump.dat ...
Heap dump file created
$ jhat -port 9998 /tmp/dump.dat
Reading from C:/Users/LIYANG~1/AppData/Local/Temp/dump.dat...
Dump file created Fri Sep 27 17:37:06 CST 2019
Snapshot read, resolving...
Resolving 35372 objects...
Chasing references, expect 7 dots.......
Eliminating duplicate references.......
Snapshot resolved.
Started HTTP server on port 9998
Server is ready.

注:如果文件过大,需要加上jvm启动参数:jhat -j-xmx512m -port 9998 /tmp/dump.dat

4.jhat:Java Heap Analysis Tool

作用:heap的分析工具

5.jstat

作用:jvm统计监测工具
语法:
jstat [ generalOption | outputOptions vmid [interval[ s|ms] [count] ] ]:vmid是java虚拟机id,在linux/unix系统上一般就是进程id。interval是采样时间间隔。count是采样数量。

$ jstat -gc 33404 250 4
 S0C    S1C    S0U    S1U      EC       EU        OC         OU       MC     MU    CCSC   CCSU   YGC     YGCT    FGC    FGCT     GCT
512.0  512.0   0.0    0.0    4480.0    15.2    10944.0     2464.6   4480.0 4431.9  0.0    0.0        3    0.005   1      0.005    0.009
512.0  512.0   0.0    0.0    4480.0    15.2    10944.0     2464.6   4480.0 4431.9  0.0    0.0        3    0.005   1      0.005    0.009
512.0  512.0   0.0    0.0    4480.0    15.2    10944.0     2464.6   4480.0 4431.9  0.0    0.0        3    0.005   1      0.005    0.009
512.0  512.0   0.0    0.0    4480.0    15.2    10944.0     2464.6   4480.0 4431.9  0.0    0.0        3    0.005   1      0.005    0.009

上面就是采集gc信息,采样时间间隔250ms,采样数量4次。