I’ve just installed Razuna 1.7 and necessary tools onto my CentOS 6 server and started Tomcat.
However I wasn’t able to launch the set up wizard with my server IP address.
Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0130000, 986513408, 0) failed; error=‘Cannot allocate memory’ (errno=12)
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (malloc) failed to allocate 986513408 bytes for committing reserved memory.
An error report file with more information is saved as:
/opt/razuna/tomcat/bin/hs_err_pid29693.log
Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0130000, 986513408, 0) failed; error=‘Cannot allocate memory’ (errno=12)
I’ve added: export JAVA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=128m" to setenv.sh as advised in the wiki and restarted but still can solve.
Perm Gen size needs to be increased if encountering OutOfMemoryError: PermGen problems. Specifying PermGen size is not valid on IBM JDKs
PRGDIR=dirname $0
RAZUNA_MAX_PERM_SIZE=512m
if [ -f “${PRGDIR}/permgen.sh” ]; then
echo “Detecting JVM PermGen support…”
. ${PRGDIR}/permgen.sh
if [ $JAVA_PERMGEN_SUPPORTED = “true” ]; then
echo “PermGen switch is supported. Setting to ${RAZUNA_MAX_PERM_SIZE}”
CATALINA_OPTS="-XX:PermSize=${RAZUNA_MAX_PERM_SIZE} -XX:MaxPermSize=${RAZUNA_MAX_PERM_SIZE} ${CATALINA_OPTS}"
else
echo “PermGen switch is NOT supported and will NOT be set automatically.”
fi
fi
Remove the first line with JAVA_OPTS as every where you refer to
CATALINA_OPTS.
Even then I don’t think this is the issue. Like I said, look in the
catalina.out log file and look for the error during startup. If it is
memory related than the setend.sh is the right file to work with.