Wednesday, March 28, 2012

openfire is not running - CentOS

Openfire is not running

This question has been Answered.
Hey,

I try to install Openfire on my VPS with CentOS release 5.6 (Final) but for some reason it doesnt start.

# uname -a
Linux server1.xxxxx.xx 2.6.18-028stab091.2 #1 SMP Fri Jun 3 00:02:40 MSD 2011 i686 i686 i386 GNU/Linux

#java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode)

# /etc/init.d/openfire start
Starting openfire:
# /etc/init.d/openfire status
openfire is not running

# /etc/init.d/openfire start

Openfire is already running. Remove /var/run/openfire.pid if you know this to be untrue.

# rm -f /var/run/openfire.pid


# netstat -an | grep 9090

P.S. I have no firewall installed e.g. iptables.


/opt/openfire/logs/nohup.out:
Exception in thread "main" java.lang.OutOfMemoryError

I changed this line in /etc/sysconfig/openfire

#OPENFIRE_OPTS="-Xmx1024m"
OPENFIRE_OPTS="-Xms512m -Xmx1024m"


/opt/openfire/logs/nohup.out:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

Help appreciated!

See more help
http://community.igniterealtime.org/message/215863#215863

0 comments: