IDRASAcademic OS
JAVA100% Active LaboratoryVISUALIZATION

JVM Generational Heap & Garbage Collection Laboratory

Interactive Java Virtual Machine memory model with Eden, Survivor (S0/S1), and Tenured spaces. Allocate heap objects and trigger Minor vs Major GC mark-and-sweep.

JAVA • VISUALIZATIONJVM Generational Heap & Garbage Collection Laboratory
JAVA • JVM RUNTIMEGenerational Heap & Garbage Collection

JVM Generational Memory & Garbage Collection Laboratory

Young Generation (Eden + Survivor S0/S1 Spaces)Short-lived Objects
Eden Space2 objects
UserDto12MB | age:0
OrderRequest24MB | age:0
Survivor (From / To S0, S1)1 objects
AppConfigage:2 (threshold: 3)
Old Generation (Tenured Space)Long-lived Objects • Promoted when age ≥ 3
DatabaseConnectionPool64MB | Promoted (Age 8)
JVM GC Log Event
JVM initialized with -Xms256m -Xmx1024m.
Weak Generational Hypothesis:

Most objects in Java die shortly after allocation (high churn rate). By segregating the heap into Young Generation (Eden + Survivor) and Old Generation (Tenured), the JVM can run blazing-fast Minor GC pauses that scavenge Eden and promote survivors, avoiding expensive Stop-the-World Major GCs on the entire heap!

Want a step-by-step breakdown from our 4 AI Engineering Agents?
Mastery Standard: Complete all 3 tasks in the Lab Protocol to earn verified mastery credits.
Study Full Unit Notes →