I have recently migrated my application in to JBoss Server and struggling a bit with performance tuning. I am getting java.lang.OutOfMemoryError: Java heap space exception in every three- four days. This is crashing the JBoss Server and i have to restart my server when this occurs.
My heap setting in run.conf are
if [ "x$JAVA_OPTS" = "x" ]; then JAVA_OPTS="-Xms1024m -Xmx2048m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000" fi
and there are many more such posts in this forum.