Symptoms

OA UI is down or UI Java process constantly consumes 100% CPU.

/var/log/poa-ui.log contains the entries:

2016-11-29 16:26:53,886 0b49b3d5a2 8373) DEBUG  ERR                  java.lang.OutOfMemoryError: Java heap space
2016-11-29 16:26:53,894            8354) DEBUG  ERR                  java.lang.OutOfMemoryError: Java heap

The following errors are logged to /var/log/catalina.out

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Receive Worker for ClientChannel: (iiop) 192.168.231.40:8409 (43017 -> 8409)"
Caused by: java.lang.OutOfMemoryError: Java heap space

Cause

Various reasons may occupy the whole Java heap space of the UI service.

Resolution

As an immediate resolution, restart the service:

# service pemui restart

In order to trace down the cause of such issues, add the following adjustments to /etc/init.d/pemui:

correct the line:

export JAVA_OPTS="-server -Xms1024m -Xmx1024m -XX:MaxPermSize=128m -XX:+UseParallelOldGC -Dplesk.root=/usr/local/pem -Dfile.encoding=UTF-8 -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true "

so that it turns to:

export JAVA_OPTS="-server -Xms2560m -Xmx2560m -XX:MaxPermSize=128m -XX:+UseParallelOldGC -Dplesk.root=/usr/local/pem -Dfile.encoding=UTF-8 -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/ -verbose:gc -Xloggc:/tmp/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:GCLogFileSize=1M -XX:NumberOfGCLogFiles=5"

Restart the UI service afterwards:

# service pemui restart

Internal content