I’ve been using Openfire v3.xx for about 10 years until server crashed. Now I’m running a new server under Linux Ubuntu 25.04 / Openfire v 5.0.3 / MySQL 8.4.5 / Java OpenSDK 21.0.9.
I have 8GB allowed to Java memory, when the server boots up it’s only 100/200Mb used, but hour-to-hour and day-to-day it grows up, about the 10th day or so memory Java is using 100% of allowed space and Openfire crashes (users can’t connect, Spark remains on “connecting to server” indefienitely) forcing to reboot the server to allow clients to connect.
Hi! I’m sorry that you’re running into this. That sounds like a memory leak.
The best way to analyze this if you were to provide a heap dump of a running Openfire system that has been running long enough for it to run (almost) out of memory. There are various ways of creating a heap dump of a Java application. This page lists a few common approaches: https://www.baeldung.com/java-heap-dump-capture
We sometimes see that certain plugins cause a memory leak like this. Try running without plugins (make sure to restart Openfire after removing the plugins) to see if that works around the problem.