Java Heap size in Openfire 3.9.1 for Windows

Hello! I have the Openfire 3.9.1 installed on the Windows Server 2008R2 (physical server, 16Gb RAM, 2x4 Core Xeon). Openfire was installed from a standard bundle, with a built-in JRE.

I want to increase a memory allocated to Openfire to 2-3 Gb.

When I create a file bin\openfire-service.vmoptions with -Xmx2048m, Openfire can’t start. A maximum memory size which can be set without errors is 1024 Mb.

As I understood the Openfire’s documentation, I need to increase a JVM heap size before, according to https://community.igniterealtime.org/docs/DOC-1033#Heap_Settings, but I can’t find this setting in the configuration files. I found how to do it in Linux, not Windows.

Can you point me, where I should set these valuee?

The default JRE may be a 32bit one. Try to use a 64bit JRE.

Thank you.

Is it possible to run current installation with all settings, plugins and patches (NTLM patch) under 64-bit JRE, without full reinstalling of the Openfire?

And does 32bit built-in JRE mean 1Gb VM limit, or it can be bigger than 1Gb?

Install the JRE somewhere. Then rename the 32bit jre folder in openfire/ and copy the 64bit jre there and name it as the 32bit JRE folder was name.

It may be easier just to remove (or rename to jre-old) the original /openfire/jre folder and install JRE 64-bit. It works with a 32-bit one. Openfire finds system’s JRE automatically. Though i haven’t tried this with 64-bit Java.

Thank you for answers, but both ways are not work. In both cases openfire requires “correctly installed 32-bit JRE”. As I understood, I also need a bulded for x64 openfire launcher.

I found this https://community.igniterealtime.org/docs/DOC-1331

Is it useful for latest openfire versions? How about stability for this workaround?