View RSS Feed

Garbage Collection

Java Garbage Collection

  1. Types of Garbage Collector in Java

    by , 03-02-2012 at 05:31 PM
    Java Runtime provides various Garbage collection types in Java. One may choose them according to the requirements of performance of your application. In Java 5, three garbage collectors are added except “serial” garbage collector. Each garbage collector is implemented to raise the throughput of application or to reduce the garbage collection’s pause time.

    1) Throughput Garbage Collector:
    Garbage collector used parallel version of the Young generation collector. JVM, -XX:+UseParallelGC ...
  2. Garbage Collection Disadvantages

    by , 03-02-2012 at 05:30 PM
    Garbage collection has certain disadvantages which are as following:

    • Garbage collection uses computing resources so that to take a decision that which memory shall be reconstruct or free the fact to which programmer is well-aware of. When object lifetime is not manually annotated in source code, penalty is overhead. It will reduce the performance. Overheads are not bearable or tolerable, when interaction is present to memory hierarchy effects. It is not easy to predict them during
  3. Garbage Collection Overview

    by , 03-02-2012 at 05:28 PM
    Garbage collection is automatic memory management in computer sciences. Garbage collector attempts to reclaim garbage or occupied memory of the object that is not in use of program. In 1959, Garbage collection was invented by John McCarthy to solve the Lisp problems.

    Usually garbage collection and manual memory management are considered opposite of each other. Objects are required by programmers which are returned or deallocated to the memory. Various approaches are taken into consideration ...
  4. Java garbage collector

    by , 01-08-2012 at 12:53 PM
    A new object is stored into heap when it is created by the Java Program. Heap is also call garbage collectable heap and it can be released by the garbage collector. Garbage collector is a JVM low priority thread and its execution cannot be forced. It is executed to release memory allocated to unused object. Also you can ask garbage collector to release memory by using System.gc()

    Object is unreachable when it has no other object that is referencing to this object. In such cases this ...