Openfire 3.5.0 running out of memory

Hi Guys

I’m now running 3.5.0 on a Xeon server with 2Gb RAM on CentOS 5.1 - Today the server simply stopped forwarding packets, both message and presense and had a load of out of memory error messages in the log. I couldn’t get onto the admin console either.

I was running 3.4.1 previously, and the admin console showed it getting close to the maximum allocated memory on numerous occasions, but it usually seems to do housekeeping and the memory used drops back down.

This didn’t happen in this case and used over 500Mb of RAM before falling over - does anyone have any thoughts ?

I’ve also been playing with setting the max and min memory sizes for the VM, but adding the commands doesn’t seem to make an differance.

Martyn

Hi.

Did you tried to set some extra VM parameters to extends your memory from 64 to e.g. 128 MB?

Open file 'opt/openfire/bin/openfire and set: INSTALL4J_ADD_VM_PARAMS="-Xms128m -Xmx128m"

How much memory your java allocate? Maybe you should give this doc a try.

Hi

Thanks for the reply - do you mean the openfire.sh script ? Openfire shows 43.42 MB of 489.19 MB (8.9%) used on the admin server page. |

Martyn wrote:

Thanks for the reply - do you mean the openfire.sh script ? Openfire shows 43.42 MB of 489.19 MB (8.9%) used on the admin server page. |

Yeah, open it up. openfire.sh should be linked directly to the file called openfire (without any extension) in the same dir. After the first lines you will find an entry called # Uncomment the following line to add additional VM parameters after that you just entered the code above and make sure it is uncommented. After that restart openfire.

Btw: Which java version do you use? Maybe you should upgrade to the latest version too.

I only have embedded-db.rc, embedded-db-viewer.sh, openfirectl and openfire.sh in the bin directory - am I missing something ?

If openfire.sh contains the following content upon the first lines it will be the right file.

#! /bin/sh

# Uncomment the following line to override the JVM search sequence

# INSTALL4J_JAVA_HOME_OVERRIDE=

# Uncomment the following line to add additional VM parameters

# INSTALL4J_ADD_VM_PARAMS=

read_db_entry() {