Describe the bug
if something wrong when run everyMinute() in class ConnectionManager, Timer stop run continue
To Reproduce
Steps to reproduce the behavior:
Go to ConnectionManager
receiverTasks.scheduleAtFixedRate
everyMinute()
doForAllServices(ServiceChecker checker)
service is null
Impact
packetsReceived not reset every minute, XMPP Limits exceeded on connection
Unknown commented 3 years ago
Could you explain in more details "something wrong when run everyMinute()"? Do you mean some exception is thrown? Do you have any custom code?
Indeed if the statistics are not collected/cleared periodically it could lead to the impression that the metrics are growing and there is something wrong with the installation, but to investigate it properly we need more details.
Unknown commented 3 years ago
I add some code like below, so far, "XMPP Limits exceeded on connection" not appear in the log again.
(1) AbstractMessageReceiver.java , receiverTasks.scheduleAtFixedRate(...), everyMinute() surround with try catch
(2) ConnectionManager.java ,doForAllServices(...), if (service != null) { checker.check(service); }
The problem rarely occurs,I am not sure the fix is valid.
Unknown commented 3 years ago
I wasn't asking about your attempt at the fix of the problem but if you had any custom code in Tigase at all.
Describe the bug if something wrong when run everyMinute() in class ConnectionManager, Timer stop run continue
To Reproduce Steps to reproduce the behavior:
Impact packetsReceived not reset every minute, XMPP Limits exceeded on connection