I was a bit premature last night in thinking that my problem getting Openfire to start was solved.
/opt/openfire/logs/nhub.out shows:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
/etc/sysconfig/openfire is as follows:
Set this to the path where openfire lives.
If this is not set the script will look for /usr/local/openfire, then
/opt/openfire.
#OPENFIRE_HOME=""
If there is a different user you would like to run openfire as,
change the following line.
#OPENFIRE_USER=“daemon”
If you wish to change the location of the openfire pid file,
change the following line.
#OPENFIRE_PIDFILE="/var/run/openfire.pid"
If you wish to explictly specific the location of the log directory,
you can set it here. Note that this applies to the logs generated outside
openfire itself. If you want to change the location of openfire’s own
logs, see the system property ‘log.directory’. If this is not set,
it will default to $OPENFIRE_HOME/logs.
#OPENFIRE_LOGDIR="/some/where/logs"
If you wish to set any specific options to pass to the JVM, you can
set them with the following variable.
#OPENFIRE_OPTS="-Xmx1024m"
OPENFIRE_OPTS=“Xmx256m”
If you wish to override the auto-detected JAVA_HOME variable, uncomment
and change the following line.
#JAVA_HOME=/usr/java/default
JAVA_HOME=/opt/openfire/jre
I’ve set the memory for Java to use 1024, 256, and left it uncommented too - same result.
I installed on a VPS running CentOs 5.3 w/384MB RAM burstable to 1024MBytes RAM from the RPM.
When I “/etc/rc.d/init.d/openfire start” I get the following:
Starting openfire:
and then the shell prompt again - no warnings or anything.
How can I troubleshoot this problem?
.