JVM Troubleshooting
Introduction
1.
Basic conception, instruction and tools
1.1.
HotSpot JVM Architecture
1.2.
Automatic Garbage Collection
1.3.
JVM Generation
1.4.
Generational Garbage Collection Process
1.5.
JVM OPTS
1.6.
jmap
1.7.
jstack
2.
JVM Hang
3.
Out of Memory
4.
JVM Crash
4.1.
JVM Crash Cases
4.2.
Lab - Native library cause JVM Crash
5.
High CPU Usage
6.
File Descriptor
6.1.
Too many open files - Maven assemble plugin
7.
Labs
7.1.
Generational Garbage Collection Process
7.2.
Java Threads Deadlock
Published with GitBook
What
High CPU usage(=100%) by JBoss process is observed
Processing in-flight request becomes slow or timed out
High CPU Usage ~= JVM Hang
Why
JVM process may occupy CPU resource: Infinite loop, Contention on threads, GC
How
Analyze CPU usage rate
Labs