Skip to content
Chaos Lab

Challenge 28 · intermediate · JVM heap

Memory leak

A Java recommendations service with a 1 GB heap answers 500 requests a second. At 10 seconds v3.2 ships, adding a per-session cache. Watch the live heap after each GC, the time spent in GC, and what happens when there is no room left.

From 10 seconds to 3 minutes, answer at least 99.5% of requests with a p99 of 150 ms or less.

ready00:00 / 03:00Success · 10 s–p99 · 10 s–Live heap300 MBRestarts0

Goal · measured 00:10–03:00

0 changes · par 1
  • Requests answered ≥ 99.5%not measured yet
  • p99 latency ≤ 150 msnot measured yet

This is a simulation. Its numbers come from a model of a typical system, not from measuring real servers. The same link and seed always give the same run. How the Chaos Lab works.