Reese Knowledgebase

Oracle GoldenGate Veridata OutOfMemoryError: PermGen space

View Kristian Reese's profile on LinkedIn


If you like this article, please +1 or Recommend via FB with the provided buttons above:

Article ID: 159
by: Reese K.
Posted: 05 Dec, 2014
Last updated: 05 Dec, 2014
Views: 673

After installing Oracle GoldenGate Veridata, a PermGen space error occurred.  The following was observed in the veridataweb.log, which is located /usr/local/Oracle_GoldenGate_Veridata/shared/logs/veridataweb.log by a default installation.

java.lang.OutOfMemoryError: PermGen space

In order to correct this problem, I amended the following to java options to JAVA_OPTS in /usr/local/Oracle_GoldenGate_Veridata/web/bin/veridata_web.sh:

-XX:PermSize=768m -XX:MaxPermSize=768m

#!/bin/sh
# Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. 

umask 027

if [ -z "$1" ]; then
    echo "Usage: `basename "$0"` start|run|stop" 1>&2
    exit 1
fi

SCRIPT_DIR="`dirname "$0"`"
VERIDATA_HOME="`cd "$SCRIPT_DIR" ; cd ../.. ; pwd`"

CATALINA_HOME="$VERIDATA_HOME/web"
export CATALINA_HOME
echo "CATALINA_HOME: $CATALINA_HOME"

JRE_HOME="$VERIDATA_HOME/jre"
export JRE_HOME
echo "JRE_HOME: $JRE_HOME"

unset JAVA_HOME
JMXPORT=
#JMXPORT=$JMXPORT -Dcom.sun.management.jmxremote.port=9999 
#JMXPORT=$JMXPORT -Dcom.sun.management.jmxremote.authenticate=false 
#JMXPORT=$JMXPORT -Dcom.sun.management.jmxremote.ssl=false

#JAVA_OPTS="-Xms1024m -Xmx1024m -Djava.awt.headless=true -Dveridata.home=$VERIDATA_HOME -Dveridata.log.dir=$VERIDATA_HOME/shared/logs -Dveridata.log.file=veridataweb.log"
JAVA_OPTS="-Xms1024m -Xmx1024m -XX:PermSize=768m -XX:MaxPermSize=768m -Djava.awt.headless=true -Dveridata.home=$VERIDATA_HOME -Dveridata.log.dir=$VERIDATA_HOME/shared/logs -Dveridata.log.file=veridataweb.log"
export JAVA_OPTS
echo "JAVA_OPTS: $JAVA_OPTS"

case "$1" in
    start)
        JAVA_OPTS="$JAVA_OPTS $JMXPORT"
        export JAVA_OPTS
#        "$CATALINA_HOME/bin/catalina.sh" start -security
        "$CATALINA_HOME/bin/catalina.sh" start
        ;;
    run)
        JAVA_OPTS="$JAVA_OPTS $JMXPORT"
        export JAVA_OPTS
#        "$CATALINA_HOME/bin/catalina.sh" run -security
        "$CATALINA_HOME/bin/catalina.sh" run
        ;;
    stop)
        "$CATALINA_HOME/bin/catalina.sh" stop
        ;;
    *)
        echo "Invalid parameter: $1"
esac
This article was:   Helpful | Not Helpful
Prev   Next
Running RabbitMQ as a non root user     Ruby

RSS