JAVA100% Active LaboratoryLAB
Java Thread Lifecycle & Monitor Lock (synchronized) Lab
Interactive thread state machine (NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, TERMINATED) with object monitor lock queues (Entry Set vs Wait Set).
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 →