Search code examples
javaperformancememoryheap-memoryopenfire

Increase openfire memory to larger values


We use OpenFire for XMPP messages. We have some memory issues(OutOfMemoryError), and therefor we would like to increase memory. I know how to increase memory using VM options and we were able to increase memory to 1.5Gb. but larger values do not seem supported

We use a 32bit VM, since it appears 64bit VM's are not supported on OpenFire

My question: Is there anyone out there that was able to increase OpenFire memory to larger then 1.5GB values? if so, please learn me how.


Solution

  • According to this, add a following line in /etc/sysconfig/openfire

    OPENFIRE_OPTS="-Xms256m -Xmx1024m"
    

    I am afraid that you cannot get more than 1.4 to 1.6 GB on 32bit machine for heap allocation. You can check this article from Oracle.