Why cannot the JVM auto expand heap memory to the configured Xmx3072m in linux & jdk1.6.0_32, and FullGC occurs very frequently

The RES value isn’t how much memory the process is using, but how much actual RAM it uses. This doesn’t include swapped pages and allocated but unmapped pages. Make sure you have enough free memory on the system itself, you can run free, or even top should print above how much memory is in use. The output of top suggests that the process has 4G of memory mapped, but not currently in the RAM (the VIRT value).

Leave a Comment