DE 5812: EKM 13 throws an Exception and Migration Process is not completed successfully if the JAVA heap size memory is insufficient. Is there a workaround for this issue?


The amount of system memory (RAM) that is available to EKM is governed by the heap size settings of the Java Virtual Machine (JVM) that runs the JBoss application server that hosts the EKM server application. If you experience out of memory errors due to the JVM heap size, or notice severely degraded performance, it may be necessary to increase the JVM's heap size settings.
To do this, you need to modify the Xmx (max heap size) parameter of the JVM. You may optionally also change the Xms (initial heap size) parameter of the JVM. For more information about these parameters, consult the Java documentation.

The actual values to use for these parameters depends on your usage of EKM, and how much memory is available on the system. If you are unsure what to set them to, a general recommendation is to increase Xms (initial heap size) to 1024m, and Xmx (max heap size) to 2048m.

Linux:

1. Edit the file: JBOSS_HOME/bin/run.conf. "JBOSS_HOME" is an environment variable that points to the installation directory for JBoss application.

Change the lines:

if [ true ]; then
JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
fi

As shown below. This example sets a max heap size of 2048m, and an initial heap size of 1024m:

if [ true ]; then
JAVA_OPTS="$JAVA_OPTS -Xms1024m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
fi

Windows:

1. Edit the file: JBOSS_HOMEbinrun.conf.bat. "JBOSS_HOME" is an environment variable that points to the installation directory for JBoss application.

Change the lines:

rem # JVM memory allocation pool parameters - modify as appropriate.
set "JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m"

As shown below. This example sets a max heap size of 2048m, and an initial heap size of 1024m:

rem # JVM memory allocation pool parameters - modify as appropriate.
set "JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=256m"

2. Edit the file: JBOSS_HOMEserverekmwrapperwrapper.conf

Change the lines:
wrapper.java.additional.4=-Xms128m
wrapper.java.additional.5=-Xmx1024m

As shown below. This example sets a max heap size of 2048m, and an initial heap size of 1024m:

wrapper.java.additional.4=-Xms1024m
wrapper.java.additional.5=-Xmx2048m





Show Form
No comments yet. Be the first to add a comment!