powered by Jive Software

Openfire - Out Of Memory

We are facing “OutOfMemoryError: Java heap space” error in Openfire, this causes stopping our Openfire service. I have attached heap dump, can you help someone to resolve this issue or what’s reason for sudden memory increase.

Set up used for Openfire:
Openfire Version : 4.0.4
Java Memory : 250 MB. (Default settings)
Installed Machine : Windows server 2012
Total users : 300

Sorry. Not able to attach heap dump file as am new user to openfire discussion. Administrator, can you give access?

Have you tried increasing the Java Memory as per this guide (Custom Parameters)? http://download.igniterealtime.org/openfire/docs/latest/documentation/install-guide.html

Already tried, not helps for us. Actually this heap space error occurred suddenly at particular time.

250 MB is just not enough memory. Yes, it is a lame excuse, but you just need to increase it. Also, you need to run the current release of Openfire 4.2.1 in order to get helpful support here as to any memory leaks you may be seeing. That old of version did have some bugs with how it calculated cache sizes, IIRC

Thank you @wroot and @akrherz .

Why offline message “ofoffline” table is growing a lot for particular user. Can you give me some idea about this?

Obvious reason would be - he gets lots of offline messages.

You are using an old version of Openfire that may have a bug with the offline storage of error messages destined to unreachable remote hosts? Can you provide a sampling of what messages are in the table?