JVM memory issues.
843829Nov 18 2009 — edited Nov 19 2009Hi All,
This is about the JVM memory issues I am getting on CentOS 5.2.
I have the following configuration export CATALINA_OPTS="-Xms2048m -Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=1024m" and the line is being added in catalina.sh file.
When I run the process after say around 12hrs I get the following error code java.lang.OutOfMemoryError: Requested array size exceeds VM limit this looks to be the jvm error.
What is the work around for preventing the above error? My RAM size is 4 gb and JVM heap size configured to be 2 gb.
Another query is , if I do a top -p on the particular java process I do see the RES grows more than the heap size configured like 2gb configured in this case but have seen the process RES is more than 2 gb.I am not clear about this.
Let me know if I can provide more information.
Thanks in advance.
-Raju