Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

What is Java Garbage Collection?

Category: JMeter

Java applications obtain objects in memory as needed. It is the task of garbage collection (GC) in the Java virtual machine (JVM) to automatically determine what memory is no longer being used by a Java application and to recycle this memory for other uses.

Java garbage collection is the process by which Java programs perform automatic memory management. The garbage collector finds these unused objects and deletes them to free up memory.

What are the different types of garbage collectors in Java?

  • Serial Garbage Collector – it works for standalone application. If you use serial GC for distributed applications, u will observe high performance issues.
  • Parallel Garbage Collector.
  • CMS Garbage Collector (Concurrent Mark Sweep).
  • G1 Garbage Collector.

Leave a Reply

Your email address will not be published. Required fields are marked *