Resetting memory is much less available memory
I have a Tomcat application server that is configured to generate a memory dump in OOM and starts with -Xmx1024M, so Gigabyte must be available for it.
Now I found one such dump and it only contains 260MB of unallocated memory. How is it possible that the dump is so much smaller than what it should be?
a source to share
Permgen space is managed independently of the heap and can run out even when it has a lot of free memory. Some web frameworks (especially JSF) are real sows, and at the same time, it is easy to lose the default configuration. It can be increased with -XX: MaxPermSize = ### m
Remember that system space is limited by the sum of heap and permgen, so you may consume fewer total resources before throwing a Can not Create Native Thread OOM exception, unless you shrink the heap by PermGen.
a source to share