How can I change Java memory?

Hello.

How can I change Java Memory?

Thank you.

Openfire: Installation Guide - Custom Parameters

Have you already asked this in the chat? Is it the case when you can’t find /bin directory? You should mention all the details possible in your post, so people won’t have to guess.

I installed OpenFire on Windows server 2008 R2.

If you have installed a service for it (in the same documentation - Windows Service), which i recommend, then read in the document i have provided above how to create a openfire-service.vmoptions file in the Openfire\bin folder and what values to put inside. When using 32-bit Java you won’t be able to use a lot of memory still. I think it only allows to set it to 1200-1300 MB highest value.

Yes, I installed service too.

I just need to create a file “openfire-service.vmoptions” and put “-Xmx1024m” to it?

You need both min and max settings in that file. So:

-Xms512m

-Xmx1024m

Or similar. Of course, this setting will only work when you run it as a service.