Skip to main content

Out of Memory Issue

2 replies [Last post]
kompakarpg
Offline
Joined: 2008-07-25
Points: 0

Hi, i'm using jboss AS, and RHEL3. Since jan this year, i am hitting not enough heap space, out of memory issue, Please help to advise on the jvm parameter. And is there any better parameter or settings that can solve this issue. Thanks

/usr/java/jdk1.5.0_12/bin/java -server -Dprogram.name=run.sh -Xmn512m -Xms2560m -Xmx2560m -XX:NewSize=853m -XX:MaxNewSize=853m -XX:PermSize=1280m -XX:MaxPermSize=1280m -XX:+UseParallelGC -Xss128k -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Djava.endorsed.dirs=
root

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
claudio
Offline
Joined: 2003-06-17
Points: 0

Those parameters below, are used to configure the same memory area, the young generation. Probably this is not related to the issue you said, but how can you known which one the JVM is using to size the young generation.

[pre]
-Xmn512m
-XX:NewSize=853m -XX:MaxNewSize=853m
[/pre]

As for your issue, it can be application's memory leak, not releasing objects. Try to have some memory dumps at different times, and analyze it with propert tools, like Eclipse Memory Analyzer [1] or IBM Heap Dump Analyzer [2]

1 http://www.eclipse.org/mat/
2 http://alphaworks.ibm.com/tech/heapanalyzer

linuxhippy
Offline
Joined: 2004-01-07
Points: 0

Are you sure you don't have a memory leak?
If not you could enlarge your maximum heap, but of course that depends on how much physical space you have left.

lg Clemens