在 visualvm 堆转储中,"Local Variable" 之后的线程数是多少?
In a visualvm heap dump, what is the number after "Local Variable" for threads?
我正在使用 VisualVM
分析堆转储中的线程,我想知道下面线程中 Local Variable: byte[]
之后的计数是什么意思?这是否意味着变量的大小?或变量的实例总数?或者其他什么?
"Multicast Heartbeat Receiver Thread" daemon prio=5 tid=38 RUNNABLE
at java.util.zip.Inflater.inflateBytes(Native Method)
at java.util.zip.Inflater.inflate(<unknown string>)
Local Variable: java.util.zip.ZStreamRef#366
Local Variable: java.util.zip.Inflater#366
at java.util.zip.InflaterInputStream.read(<unknown string>)
at java.util.zip.GZIPInputStream.read(<unknown string>)
at net.sf.ehcache.distribution.PayloadUtil.ungzip(PayloadUtil.java:194)
Local Variable: java.util.zip.GZIPInputStream#1
Local Variable: byte[]#537427
Local Variable: byte[]#537474
Local Variable: java.io.ByteArrayOutputStream#317
at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver$MulticastReceiverThread.processPayload(MulticastKeepaliveHeartbeatReceiver.java:142)
Local Variable: org.glowroot.agent.model.TraceEntryImpl#12145
Local Variable: org.glowroot.agent.model.OptionalThreadContextImpl#7
at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver$MulticastReceiverThread.run(MulticastKeepaliveHeartbeatReceiver.java:126)
Local Variable: byte[]#4513
#
后面的数字是序号。例如。 Local Variable: byte[]#537427
表示这是 byte[]
.
的 537427:th 实例
点击 visual vm 中的 instances
选项卡就清楚了。在下图中,我看到了我的测试程序中所有字节数组的列表,从 #1
开始枚举,其中 N 项 表示数组的大小。
我正在使用 VisualVM
分析堆转储中的线程,我想知道下面线程中 Local Variable: byte[]
之后的计数是什么意思?这是否意味着变量的大小?或变量的实例总数?或者其他什么?
"Multicast Heartbeat Receiver Thread" daemon prio=5 tid=38 RUNNABLE
at java.util.zip.Inflater.inflateBytes(Native Method)
at java.util.zip.Inflater.inflate(<unknown string>)
Local Variable: java.util.zip.ZStreamRef#366
Local Variable: java.util.zip.Inflater#366
at java.util.zip.InflaterInputStream.read(<unknown string>)
at java.util.zip.GZIPInputStream.read(<unknown string>)
at net.sf.ehcache.distribution.PayloadUtil.ungzip(PayloadUtil.java:194)
Local Variable: java.util.zip.GZIPInputStream#1
Local Variable: byte[]#537427
Local Variable: byte[]#537474
Local Variable: java.io.ByteArrayOutputStream#317
at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver$MulticastReceiverThread.processPayload(MulticastKeepaliveHeartbeatReceiver.java:142)
Local Variable: org.glowroot.agent.model.TraceEntryImpl#12145
Local Variable: org.glowroot.agent.model.OptionalThreadContextImpl#7
at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver$MulticastReceiverThread.run(MulticastKeepaliveHeartbeatReceiver.java:126)
Local Variable: byte[]#4513
#
后面的数字是序号。例如。 Local Variable: byte[]#537427
表示这是 byte[]
.
点击 visual vm 中的 instances
选项卡就清楚了。在下图中,我看到了我的测试程序中所有字节数组的列表,从 #1
开始枚举,其中 N 项 表示数组的大小。