Posts

Showing posts with the label gc

Basic concepts of Java heap dump analysis with MAT

When you are working with Java, it's always good to know how you can analyze Java Heap dumps with Eclipse Memory Analyzer Tool (MAT). Eclipse MAT is by far the best tool to analyze Java Heap Dumps. Please read my medium story on " Basic concepts of Java heap dump analysis with MAT " to understand basics of heap dump analysis with a sample Java application .

Java Garbage Collection

Image
In this blog post, I'm briefly introducing important concepts in Java Garbage Collection (GC) and how to do GC Logging. There are many resources available online for Java GC and I'm linking some of those in this post. Why Garbage Collection is important? When we develop and run Java applications, we know that Java automatically allocates memory for our applications. Java also automatically deallocates memory when certain objects are no longer used. As Java Developers, we don't have to worry about memory allocations/deallocations as Java takes care of the task to manage memory for us. This memory management is a part of "Automatic Garbage Collection", which is an important feature in Java.  It is important to know how Garbage Collection manages memory in our programs. See  Java Garbage Collection Basics , which is a great "Oracle by Example (OBE)" tutorial to understand the basics in Java GC. See also  Java Garbage Collection Distilled ,  W...