posted 20 years ago
I am using Sun JDK 1.4.2_03 and Resin 2.1.12. I have an application and a website running and somehow RSS seem to be more eager to grow than to drop.
RSS seem to grow if more memory is being allocated for the heap, but even when the heapsize and amount of free memory in the heap both return to their original sizes after some activity, the RSS doesn't seem to shrink back to it's original size, why is that? What or where is the difference between the amount of memory indicated by RSS and the heapsize of the JVM?
For example, the JVM's heap usage varies between 2 and 55 mb and eventually drops back to 25 mb with the allocated heapsize at 30 mb. Why is the RSS at the incredible size of 135 mb and never returns to, say, 70 mb.
My JVM-options are:
-Xmx192M -Xms10M -XX:MaxHeapFreeRatio=30 -XX:MinHeapFreeRatio=10
Note: lowering -Xmx does not restrict growth of RSS unfortunately.