Increase Java Memory in Centos 7

Need to help for increase java memory of Openfire which is installed in centos 7.

Java memory can be increased by adding an -Xmx option to the script that is starting Openfire. You’ll find plenty of examples if you search this forum.

This is rarely needed, unless you’re running very heavily used instances. What is the problem that you’re trying to solve?

If you installed via RPM, visit the /etc/sysconfig/openfire file to see a commented out example of what to set. Then restart openfire.

2 Likes

Do I simply uncomment that line in that file and then restart Openfire? or is this just an example and I need to edit a file somewhere else?

Our instance of Openfire 4.8.3 with about 70-80 users daily runs for about 45 days and then runs out of Java Memory. It is defaulted to 512MB, and I want to increase that to 1024MB.

You should be able to just use that file.

Awesome. Thank you. :slight_smile: