Increase Java memory for Openfire Jabber Server


Open Fire is a great FREE cross platform jabber instant messenger server. I have been using it for about 2 years now and only had really one problem. The problem came down to java memory which the default was not enough and once the server reached
the limit it would basically freeze up and would force me to restart Openfire. To fix this problem you need to increase the java memory from its default. Increasing the memory for open fire is simple and you can do it by creating (or editing if exists) vmoptions files in the bin/ directory of your Openfire installation.


For the Windows service, you”d create a new text file called openfire-service.vmoptions. Each parameter to the VM should be on a new line of the file. For example, to set the minimum heap size to 512 MB and max VM heap size to 1024 MB, you”d use:
>
>-Xms512m
>-Xmx1024m
>

To create parameters for the normal launcher (its the gui for launching Openfire), create a file called openfired.vmoptions (since the openfire.exe launcher invokes the openfired.exe executable to actually start the server).

Remember if you are running as a service in windows, copy the ”openfired.vmoptions” file to another file named, ”openfire-service.vmoptions”.




You can leave a response, or trackback from your own site.


Further Reading
    None Found




Leave a Reply

Anti-Spam Quiz:

Twitter Delicious Facebook Digg Stumbleupon Favorites More
334 queries in 3.931 seconds.