Removing User Limitations
Introduction
At work, I experienced an issue with JVM memory where Xmx and Xms were set to 4.5GB, and part of the memory was going to swap until a Full GC triggered, at which point the reserved memory (RSS) that had gone to swap returned to RAM.
The warning messages I received were:
I searched quite a bit before finding a solution.
Removing User Limitations
First, for the JVM, you need to add an option at launch:
This activates the use of Intimate Shared Memory.
However, users are limited under Solaris in terms of allocatable memory, so to increase the limit:
Then log back in as user pmavro and verify that everything worked correctly:
Once this is done, the RES memory in the top command equals the maximum right from startup, and there are no more page fault issues. :-)