Skip to content

shays10/jvmworkshop

Repository files navigation

[Workshop] Troubleshooting the JVM

Before we start

Make sure you're connected to VPN

Objectives & Toolbox

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.

Let's Start!

Below you will find a list of sample apps. Simple, yet misbehaving apps.

  1. The Lightweight City Retriever
  2. The Always Correct Money Transfer
  3. Airbnb Reviews Analyzer
  4. SuperUUID Tokens Generator

Reading Materials

How do I take heap dumps in production machines?

Udemy Course - Java Memory Management

"Surviving Generations" metric - explained

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published