In java garbage collection tutorial, we will learn about object life cycle, difference between mark-sweep, mark-sweep-compact and mark-copy mechanisms, different single threaded and concurrent GC algorithms (e.g. G1), and various flags to control the gc algorithm’s behavior and log useful information for applications.
Whenever you execute a java program, a separate memory area is reserved for storing various parts of your application code which you roughly call JVM memory. Though no necessary, but having some knowledge about structuring of this memory area is quire beneficial. It becomes more important when you start working on deeper areas like performance […]
We all are aware of the functional responsibilities of garbage collector [GC] in java. But, only few try to go real deep on how actually it works. You are not one of them and that’s why you are here. In this post, we will try to understand the current mechanism of GC and will understand […]