Java Debugging Examples

Stack Traces

Heap Dumps

Histogram of Java object heap
jmap -histo
Dump Java heap
jmap -dump
jmap -dump:format=b,file=output
Dump output should be analyzed with MAT (see below section JVM profilers)

Keytool

Usage
keytool -printcert -file <file>
keytool -list -v -keystore <key store file>

JVM profilers