How to increase java memory OpenFire 3.6.0

I’ve got Openfire running on Ubuntu 8.04.2 server, installed via tarball. Currently I’m at 99% capacity for java memory. How do I go about increasing that? Everything I’ve found so far refers to directories that don’t exist.

Any idea?

Thanks in advance!!

EDIT

BTW, there is no /opt/openfire, and in /etc/openfire there isn’t any file that it would appear I could add "

OPENFIRE_OPTS="-Xms256m -Xmx512m"

There’s also no /etc/sysconfig/openfire.

Any idea what I’m missing?

Additional EDIT

It was installed via .deb file, not tarball.

Find / grep your openfire install folder and go to …/openfire/bin/ and open the file “openfire”. add there INSTALL4J_ADD_VM_PARAMS="-Xms1024m -Xmx2048m" for example.