Monday, February 20, 2012

Oracle Coherence memory error

Problem

When trying to start up Oracle Coherence 3.x:
export ORACLE_BASE=/u01/app/oracle
export MW_HOME=$ORACLE_BASE/middleware
export JAVA_HOME=$ORACLE_BASE/jrockit1.6.0_29
export COHERENCE_HOME=$MW_HOME/coherence_3.7
export PATH=$JAVA_HOME/bin:$COHERENCE_HOME/bin:$PATH:.
cd $COHERENCE_HOME/bin
./cache-server.sh
You receive the following error:
[ERROR][memory ] Could not commit 524288KB heap memory at 0xe0000000.
Could not create the Java virtual machine.
Solution

You simply do not have enough memory on your server.

Try shutting down unneeded processes to free up memory on your server, increase the physical RAM on your server, or update Coherence to use less memory.

To adjust the JVM heap size of Coherence, do the following:

1. Edit cache-server.sh

2. Update the the highlighted value below:
MEMORY=512m
JAVA_OPTS="-Xms$MEMORY -Xmx$MEMORY $JMXPROPERTIES -Dtangosol.coherence.cluster=coh_cluster -Dtangosol.coherence.clusterport=9876"

Applicable Versions:
  • Oracle Coherence 3.7.1


Ahmed Aboulnaga

No comments: