Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JVM memory issues.

843829Nov 18 2009 — edited Nov 19 2009
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2009
Added on Nov 18 2009
5 comments
373 views