Is permgen included in -Xmx?

Vikas Madhusudana picture Vikas Madhusudana · Nov 3, 2010 · Viewed 7k times · Source

When I say -Xmx=1024m, does this include permgen i.e -XX:MaxPermSize= is taken from these 1024m or it is separate?

Looking at this I thought that it takes from 1024m, but until now I had believed they were separate.

Answer

Nikita picture Nikita · Jun 14, 2011

Nope, permGen space is in addition to main heap (latter capped via -Xmx on Sun VMs)