System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Heap Size and garbage collection

SOLVED
Go to solution
Waqar Razi
Regular Advisor

Heap Size and garbage collection

In configuring java based applications, we generally talk about heap size and garbage collection.

What do we mean by these terms and how are they configured in JVM?

Can some one please give me some guidance. I am new to configuring java based stuff on hpux.
3 REPLIES
Avinash20
Honored Contributor
Solution

Re: Heap Size and garbage collection

Garbage collection is the VM process of de-allocating unused Java objects in the Java heap.The Java heap is where the objects of a Java program live. It is a repository for live objects, dead objects, and free memory. When an object can no longer be reached from any pointer in the running program, the object is garbage.

The JVM heap size determines how often and how long the VM spends collecting garbage. An acceptable rate for garbage collection is application-specific and should be adjusted after analyzing the actual time and frequency of garbage collections.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: Heap Size and garbage collection

This link might be helpful for you:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXJAVAINFOLIB

Please assign point. :
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Rajasekhar Gundu
Honored Contributor

Re: Heap Size and garbage collection

You can read more about the JVM Heap size at
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac55070_.htm

& also about the JVM garbage collection at
http://java.sun.com/docs/hotspot/gc1.4.2/

This is ultimately good material for start up & you can rely on.

-Raj

Regards,
Raj

Like this Post? Click Kudos! to show appreciation.
Is your issue addressed? Click "ACCEPT AS SOLUTION" against the post which helped you the most.