Assuming I start my java VM with the following parameters:
-Xms1024m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m
Do the 512m PermGen space add to the 1024m memory or are they part of it? Or in other words, do I have a total memory consumption of 1536m or of 1024m? In the latter case, does that mean that the application has only 512m for purposes other than PermGen space?
Please let me know in case this question reveals a lack of understanding PermGen space. ;-)
The -Xms
and -Xmx
parameters refer to heap memory, whereas the PermGen space is a separate memory pool.
In other words, the total memory size available to your Java application will be 1.5 GiB rather than 1 GiB, and you'll get the full gigabyte of space for heap-allocated objects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With