Skip to main content

Out of Memory Issue

2 replies [Last post]
Joined: 2008-07-25

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 -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=

Reply viewing options

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

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.

-XX:NewSize=853m -XX:MaxNewSize=853m

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]


Joined: 2004-01-07

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