Make sure you're connected to VPN
In today's workshop we will simulate common use cases of JVM problems you might run into when your application misbehaves.
We will learn how to troubleshoot and diagnose JVM issues in our application using a our toolbox below:
jps
- JVM Process Status Tool. Allows you to find the PID of your running JVMs.
jmap
- Memory Map. Allows you to take histograms and heapdumps.
jstack
- Allows us to print the stack traces of all threads that are attached to our JVM (e.g. Thread dump)
jvisualvm
- Allows you to monitor and troubleshoot apps on the JVM.
All of them are already installed on your machine if you have JDK installed.
Below you will find a list of sample apps. Simple, yet misbehaving apps.
- The Lightweight City Retriever
- The Always Correct Money Transfer
- Airbnb Reviews Analyzer
- SuperUUID Tokens Generator
How do I take heap dumps in production machines?