org.gridkit.jvmtool::hprof-heap

HPROF heap dump parser

License

License

GroupId

GroupId

org.gridkit.jvmtool
ArtifactId

ArtifactId

hprof-heap
Last Version

Last Version

0.16
Release Date

Release Date

Type

Type

jar
Description

Description

org.gridkit.jvmtool::hprof-heap
HPROF heap dump parser
Project URL

Project URL

http://code.google.com/p/gridkit/hprof-heap

Download hprof-heap

How to add to project

<!-- https://jarcasting.com/artifacts/org.gridkit.jvmtool/hprof-heap/ -->
<dependency>
    <groupId>org.gridkit.jvmtool</groupId>
    <artifactId>hprof-heap</artifactId>
    <version>0.16</version>
</dependency>
// https://jarcasting.com/artifacts/org.gridkit.jvmtool/hprof-heap/
implementation 'org.gridkit.jvmtool:hprof-heap:0.16'
// https://jarcasting.com/artifacts/org.gridkit.jvmtool/hprof-heap/
implementation ("org.gridkit.jvmtool:hprof-heap:0.16")
'org.gridkit.jvmtool:hprof-heap:jar:0.16'
<dependency org="org.gridkit.jvmtool" name="hprof-heap" rev="0.16">
  <artifact name="hprof-heap" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.gridkit.jvmtool', module='hprof-heap', version='0.16')
)
libraryDependencies += "org.gridkit.jvmtool" % "hprof-heap" % "0.16"
[org.gridkit.jvmtool/hprof-heap "0.16"]

Dependencies

compile (1)

Group / Artifact Type Version
org.gridkit.gzrand : gzrand jar 0.2

test (3)

Group / Artifact Type Version
junit : junit jar 4.11
org.assertj : assertj-core jar 1.6.0
org.gridkit.lab : jvm-attach-api jar 1.5

Project Modules

There are no modules declared in this project.

Swiss Java Knife (SJK)

SJK is a command line tool for JVM diagnostic, troubleshooting and profiling.

SJK exploits standard diagnostic interfaces of JVM (such as JMX, JVM attach and perf counters) and adds some more logic on top useful for common troubleshooting cases. SJK can also be used as a library for building application specific diagnostic tools or to enhance your code with self monitoring features.

What you can do with SJK?

See full command reference.

Download

Latest prebuild binaries Last Version

Starting sjk

java -jar sjk.jar <cmd> <arguments>
java -jar sjk.jar --commands
java -jar sjk.jar --help <cmd>

Below a few command from SJK (full command reference).

ttop

Pools thread CPU usage of the target JVM and periodically reports to the console.

  • can attach via PID or open JMX port
  • displays thread memory allocation rate and cumulative process allocation rate
  • displays safe point time consumption (only if attache via PID)

More details

hh

Similar to jmap -histo.

  • plus can show a histogram of dead objects (histograms of all and live requested, then difference is calculated)
  • plus can show N top buckets in histogram

More details

stcap, stcpy, ssa and flame

These commands provide basic sample profiler capabilities. stcap produces hyper-dense stack trace dump (about 1000 compression rate compared to text format) and ssa provides few reports over dump files. stcpy can copy data in archives produced by stcap (e.g. merging dumps or filtering selected threads).

So far following reports are available:

  • sophisticated filtering (time, stack trace, thread name)
  • stack frame histogram with advanced filtering options
  • flame graph visualization (SVG or interactive HTML)
  • per thread summary (CPU usage, memory allocation, etc)
  • converting back to text format

Dump file can be also processed programatically.

More details

mx

This command allows you to do basic operations with MBean from command line.

It can:

  • read MBean attributes
  • update MBean writeable attributes
  • invoke MBean operations (arguments are supported)
  • display composite and tabular data in a human readable format
  • use wild cards to shorten MBean names (e.g. *:*,name=CodeCacheManager instead of java.lang:type=MemoryManager,name=CodeCacheManager)
  • connect to local JVM processes by PID (e.i. any Java process, you do not need to enable JMX server)
  • connect to JMX using host:port (password authentication is supported)

More details

jps

Similar to jps from JDK.

  • plus can display specific system properties of process in output
  • plus can display values of specific -XX for HotSpot JVM processes
  • plus can filter process java processes by their system properties

More details

gc

Report information about GC in real time. Data is retrieved via JMX.

More details

mxdump

Dumps all MBeans of target java process to JSON.

Versions

Version
0.16
0.15
0.14.1
0.14
0.13
0.12
0.11
0.10.1
0.10
0.9.3
0.9.2
0.9.1
0.9
0.8.1
0.8
0.7
0.6
0.5.1
0.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3
0.2
0.1