I’m trying to install Openfire on a CentOS 5.3 VPS server w/384Mbytes RAM.
Since it’s CentOs, I decided, against my better judgement, to follow the RPM installation instructions from the install docs here.
rpm -ivh openfire-3.6.4-1.i386.rpm
Then I did a ‘java -version’, and it appeared the Java was not installed, so I d/l’d the JRE from Sun and did an rpm install of that too.
Then I attempted to start Openfire.
Error: JAVA_HOME is not defined correctly.
Can not sure execute /usr/local/jdk/bin/java
Then I did a 'java -version and got the following error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Okay, now, how/where do I put the -Xms32M -Xmx128M (or similar) params in so I can check Java? And I’m assuming that I’m going to need to do this in /etc/rc.d/init.d/openfire too, or one of the other files associated with Openfire startup scripts, and what would be the exact syntax, not withstanding the ranges of RAM?