Java memory size - Ubuntu

I’m hoping someone can tell me what I need to do to increase the java memory size for openfire. I already know that the first response to this pot will be to modify /etc/sysconfig/openfire - I installed via the tar.gz file, so ***I do not have this! ***The next sentence in the installation guide says “If you installed via .tar.gz, you will need to tweak your startup script to fit your needs.” Im hoping someone can point me in the right direction…

Setup:

Ubuntu 8.04 Server

Openfire 3.6.3

Openfire installed via the tar.gz package to /opt/openfire

startup script is /etc/init.d/openfired (copied from /opt/openfire/bin/extra)

Hi,

modify the startup script (may be /opt/openfire/openfire.sh).

If you do not find /opt/openfire/openfire.sh then take a look at /etc/init.d/openfired - this script will run the launch script.

Linux Installation Guide may be interesting.

LG

It turns out all needed was to do the following:

$ sudo vim /opt/openfire/bin/openfire

change this line:

#INSTALL4J_ADD_VM_PARAMS=

to this line:

INSTALL4J_ADD_VM_PARAMS="-Xms512m -Xmx1024m"

My Openfire stalls every two weeks and it seems its the java heap size thats causing the trouble. My problem is that i cannot find the foders specified in this thread and I have no file called “openfire” at all.

I have Ubuntu server 9.04 and the Openfire server directory is: /usr/share/openfire

This thread solved my problem

http://www.igniterealtime.org/community/thread/40364

Do you still have to restart every once in a while? or has this removed that need altogether??