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
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
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?