cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Java Heap Size Parameters meaning

Former Member
0 Likes
4,887

In Config tool I am seeing below Heapsize parameters.

-XX:MaxPermSize=512M

-XX:PermSize=512M

-Xms3072M

-XX:NewSize=340M

-XX:MaxNewSize=340M

When I went to sap notes 1303953nit show as

globalArea | -Xps

initialHeapSize | -Xms

maxHeapSize | -Xmx

maxNewSize | -XX:MaxNewSize

maxPermSize | -XX:MaxPermSize

newRatio | -XX:NewRatio

newSize | -XX:NewSize

permSize | -XX:PermSize

But somebody can explain me the meaning of NewSize, MaxNewSize, global ARea, maxNewSize, maxPermSize, permSize ?

In what way they are different from heapsize ?

Thanks

kumar

View Entire Topic
Former Member
0 Likes

Hello Kumar,

In Brief, A JVM(Sun/HP - IBM works differently) is divided in the following parts:

Perm Area : Where all the classes are loaded

Heap Area: Where all the objects are loaded.

Heap is inturn dvidided into new area which is also called eden and the tenured area. If the objects are above certain size, they directly are stored in the tenured area. However, otherwise the objects get stored in the new area and are promoted to old/tenured area based on the jvm algorithm/logic during the GCs.

PermSize is the initial size for the perm area.

MaxPermSize is the max that can it be stretched to. We recommend keeping these two same to avoid any dynamic change of the areas.

-Xms is the initial heapsize

-Xmx or MaxHeapSize is the maximum heap that can be allocated. Again, recommendation is to keep both same.

Hope this helps.

Regards,

Snehal/SAP, Palo Alto(USA)