Openfire increases threads and does not reduce them

Hi All,
We have two servers clustered with the Hazelcast plugin and Openfire server version of 4.7.4.
We are experiencing regular issues with “Cluster task failure” and the sudden spike in the number of processes by Openfire. These processes that are increased suddenly do not reduce at all.
We are in doubt if this is related to network connectivity from the client connections or an issue with the cluster or any issues from the VM Openfire service is running on…

Can you please provide more information? Is there anything of interest being logged in the log files when this happens? After it happens, try creating a thread dump. This will tell us what all those threads are doing.

Hi Guus,
THank you for the reply.
Thread dump before and after
xmpp-01-jstack1275202.txt (371.8 KB)
xmpp-01jstack_after.txt (411.0 KB)

ALso openfire logs registering cluster timeout on the same interval during the spike


openfire (13).log (21.0 MB)

Also we hardly have more than 1700 clients connections.
Our openfire has two vms with 32 gb ram each, out which has 20gb is allocated to heap.

We haven’t been able to get any findings on why the clustering times out given our very minimal number of connections and configuration. Any help would be much appreciated.