How to increase java memory in OpenFire 4.0.3 Ubuntu 16.10

Hi All,

Good day!

Somebody can help me?

The memory of my OpenFire Server is about to full the java memory, how can i increase it?

I install with Ubuntu 16.10 and using openfire.tar.gz

I already install java 64 bit. But how to setting java memory ? I have 128 GB memory and I want to use almost of my memory.

Right now

Java Memory



351.07 MB of 27305.00 MB

How to increase this java memory ? I’m running with more than 2500 connection active.

Thank you