Skip to content

memory garbage collection

serhij.zolotukhin edited this page Jun 29, 2026 · 1 revision

memory and garbage collection

What happens when garbage collection runs while a thread holds a lock? What is the difference between CMS, G1, and ZGC from application point of view? How does escape analysis reduce object creation? When does the JVM place objects on stack instead of heap? Why does string deduplication save memory but not execution time?

How does the JVM allocate objects when memory pressure is high? What exactly occurs during a Stop-The-World GC pause? Why GC tuning improves latency but may reduce throughput How G1 GC selects regions for cleanup Why OutOfMemoryError can occur even when heap looks free

How is memory managed in Java? How do you detect and avoid memory leaks? What escape analysis does and why it matters Practical ways to detect memory leaks in a live JVM

My side bar

Clone this wiki locally