JVM runs out of swap space
843811Nov 18 2003 — edited Feb 20 2004Hi,
I am using BEA WebLogic 8.1 with JDK 1.4.1_03 on Solaris 8 ona Sun 450 Server with 1 Gb RAM and 1 Gb swap space.
WebLogic is tarted with the following JVM options:
java -client -Xms128m -Xmx256m -XX:MaxPermSize=128m ...
When users work the heap size increases but also the process memory increases using all the available virtual memory and the JVM hangs.
This is the status when the problem occurs:
server0452: /opt/zeke/logscript > ps -eo "args,user,pmem"
COMMAND USER %MEM
java -client -Xms128m -Xmx256m -XX:MaxPermSize=128m -Xverify:none -Dweblogic.Na weblogic 70.2
server0452: /opt/zeke/logscript > swap -l
swapfile dev swaplo blocks free
/dev/md/dsk/d1 85,1 16 1052144 0
Free swap space is 0 and java uses 70.2% of 2Gb = 1.4 Gb !!!
How is this spossible? The same configuration (JDK and WebLogic) works on Windows on a 512Mb workstation. It seems that on Solaris java uses 8 times the memory used on Windows and that the total amount of memory is 8 times the size of the allocated heap. Could it be related to pagesize that is 8K?
We don't use JNI.