Set Java Memory Size

I am having trouble figureing out how to set the Java memory size. I am new to Openfire. I have found the code to, but I don’t know where to place the code to make it work. I am running Openfire on a Windows 2008 64bit server using MS SQL as the DB.

I know you can set it globally from the control panel, see infos here:

http://www.duckware.com/pmvr/howtoincreaseappletmemory.html

you could try something like:

-Xms128m -Xmx512m

I tried that and it didn’t work. This is the link that fixed my issue.

http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/install- guide.html#CustomParameters