December 2018
Intermediate to advanced
500 pages
12h 19m
English
Sometimes, our usage of memory (either from the heap or the stack) is very naive and can exceed the limits in certain scenarios, leading to Out Of Memory (OOM) crashes. For heap, the common source of errors in non-garbage collected language runtimes are memory leaks; that is, memory chunks allocated but no longer reference-able. For stack, memory overflow can happen if, for example, using recursion naively and the scale of the data drastically increases.
In languages where actual memory allocation is managed by the runtime, one of the key system aspects that can cause bottlenecks is the Garbage Collector (GC) pauses. Let's start with an overview of what typically happens during garbage collection:
Read now
Unlock full access