views:

35

answers:

1

In java we can define max memory that process can take using xmx parameter. For perm gen we can define the MaxPermSize. So is the perm gen space is also part of memory allocated using xmx parameter.

so is xmx = young + old OR young + old + perm OR young + old + perm + Stack space ?

+3  A: 

So is the perm gen space is also part of memory allocated using xmx parameter.

No, the permanent generation space is a separate memory area. Here is a nice picture illustrating it visually:

alt text

Source: Process heap, Eden, Tenured and Permgen.

Pascal Thivent
Nice pic. For the lazy, here's a direct link to the full size version: http://i.imgur.com/pmJMC.png
BalusC
@BalusC You mean too lazy for right-click > View Image? :) Will make the picture clickable for these über lazy.
Pascal Thivent
Actually, I drag and drop the image in a new Firefox tab :)
BalusC
@BalusC This saves one click if you have a tab open. But you have to move the mouse!
Pascal Thivent
It's not necessary to have a tab open. Just drop in tab bar. And, my mouse is fast .. very fast :)
BalusC