AnsweredAssumed Answered

Community 4.2b Linux Java Out Of Memory Issues

Question asked by jedmondson on Dec 5, 2012
Latest reply on Dec 19, 2013 by guigsilva
I'm running a clean install of Community 4.2b on a brand new RHEL6 instance and appear to be having java issues.

I am running RHEL6 in RHEV/RHEV-M Environment:
    Welcome to Red Hat Enterprise Virtualization Manager.
    Version 3.0.7_0001-2.el6_3
The virtual:
    Linux cralfrescorhel 2.6.32-279.11.1.el6.x86_64 #1 SMP Sat Sep 22 07:10:26 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
    Physical Memory Guaranteed:
    6144 MB
    Number of CPU Cores:
    4 (2 Socket(s), 2 Core(s) per Socket
Performed a simple install and configured, everything was up and running, no errors in the log files.
2 hours into copying data into a new site (through CIFS) the server was non-responsive and the logs start filling up with errors:

java.lang.OutOfMemoryError: GC overhead limit exceeded

I searched around and tried changing the java parameters in /opt/alfresco-4.2.b/scripts/setenv.sh
##### JAVA ENV #####
JAVA_HOME=/opt/alfresco-4.2.b/java
JAVA_OPTS="-server -Xms2G -Xmx4G -XX:MaxPermSize=256M -XX:NewSize=1G -Xss1M -verbose:gc -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=70"

export JAVA_HOME
export JAVA_OPTS
##### POSTGRES ENV #####

After reboot I'm now receiving Java heap space errors:

Exception in thread "http-apr-8080-exec-5"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "http-apr-8080-exec-6"
java.lang.OutOfMemoryError: Java heap space

What other changes can I need to make to avoid the Java heap space errors and continue trying to make 4.2.b run?

Thanks.

Joe

Outcomes