powered by Jive Software

Version of JVM

I am trying to run Openfire in Linux Red Hat 4. However, when I run it, I get the following error:

openfire

testing JVM in /opt/openfire/jre …

testing JVM in /usr …

testing JVM in /usr/java/jre1.6.0_01 …

No suitable Java Virtual Machine could be found on your system.

The version of the JVM must be at least 1.5.

Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

You can also try to delete the JVM cache file /root/.install4j

well the error tells you that you have installed java 1.6 but you need java 1.5 … so i suppose you should install java 1.5 (at least parallel to 1.6)

Thanks

I Install JRE 1.5.0.2

In .bashrc and .bash_profle add line

#JAVA

if [ -z “$JAVA_HOME” ] ; then

JAVA_HOME="/usr/java/jre1.5.0_02"

fi

export JAVA_HOME

export JDK_HOME=$JAVA_HOME

export PATH=$JAVA_HOME/bin:$PATH

restart server, but java it does not work anywhere with this error

-bash-2.05b# java -version

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

-bash-2.05b# openfire

testing JVM in /opt/openfire/jre …

testing JVM in /usr/java/jre1.5.0_02 …

No suitable Java Virtual Machine could be found on your system.

The version of the JVM must be at least 1.5.

Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

You can also try to delete the JVM cache file /root/.install4j

-bash-2.05b#

are other java programs running? i ask because i know from a friend of mine that he had problems with installing the vm under … i think it was debian or ubuntu … perhaps something went worng with your java installation.

-bash-2.05b# java -version

Error occurred during initialization of VM

Could not reserve enough space for object heap <<<<<<<<< !!!

Could not create the Java virtual machine.

May be i dont have system resources. How can i check this?

i don’‘t realy know but i would recommend to search for smililar error-messages with google - i suppose you’'re not the only one having this problem in the whole wide world

Hi,

are you running Openfire on a virtual server with limited memory?

LG

VPS

CPU Dual Intel Xeon 3.0GHz. (guarantee) - 2%

RAM (guarantee) - 64Mb

OS: RedHat Linux 9

I suppose that here is the problem

Hi,

I don’‘t know how much memory your RH9 base system uses, but I guess that it’‘s using 16 MB, so you’'d have 48 MB left for Openfire. If you are also running Apache with PHP or MySQL less memory will be free.

You can edit the start script and set there -Xms16m -Xmx48m (or lower) as JVM parameters. This will be fine if you have less than 25 users and may work even with 100 users. But with 60 MHz guaranteed it may take ages to start Openfire and every garbage collection of the JVM will take very long.

http://wiki.igniterealtime.org/display/WILDFIRE/LinuxInstallationGuide contains some more information about VPS.

LG