If your Openfire chat server stops afterward few days too says “Out of memory” yous convey several affair to do, about of them solved problem, merely if yous produce it all too update Openfire it should halt showing error.
1. Add organization property: cache.username2roster.maxLifetime = 419430400
2. Add organization property: xmpp.pep.enabled = false
3. You tin john increase retentivity for Java. Add a employment similar this inward file /etc/sysconfig/openfire : OPENFIRE_OPTS=”-Xms256m -Xmx512m”
You tin john increase retentivity every bit much every bit yous can, too therefore if yous convey 2GB of retentivity yous tin john set: OPENFIRE_OPTS=”-Xms512m -Xmx1024m” .
Also yous tin john produce this past times sending parameter to openfire.You must root notice the ascendancy that starts Java too add together this ascendancy employment parameter:
For example, role
-Xmx256m to allow Java role 256 MB of memory. The sum ascendancy powerfulness live on something similar
/path/to/java -Xmx256m -jar openfire.jar
That should solve your final result alongside depression retentivity inward Java Openfire Jabber chat server.