Skip to content

Instantly share code, notes, and snippets.

View harrylaou's full-sized avatar

Harry Laoulakos harrylaou

View GitHub Profile
@ljwagerfield
ljwagerfield / ProfilingMemoryUsageJVM.md
Last active February 19, 2019 16:33
Profiling Memory Usage (JVM)

Profiling Memory Usage of a Method (JVM)

Prerequisites:

  • YourKit

Steps:

  1. Add Thread.sleep(60000) to the START and END of the method you want to profile.

Thread Pools

Thread pools on the JVM should usually be divided into the following three categories:

  1. CPU-bound
  2. Blocking IO
  3. Non-blocking IO polling

Each of these categories has a different optimal configuration and usage pattern.