Projects tigase _server server-core Issues #1473
packetsReceived not reset every minute (#1473)
Open
Unknown opened 2 years ago

Describe the bug if something wrong when run everyMinute() in class ConnectionManager, Timer stop run continue

To Reproduce Steps to reproduce the behavior:

  1. Go to ConnectionManager
  2. receiverTasks.scheduleAtFixedRate
  3. everyMinute()
  4. doForAllServices(ServiceChecker checker)
  5. service is null

Impact packetsReceived not reset every minute, XMPP Limits exceeded on connection

Unknown commented 2 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 2 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 2 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.

Could you share complete exception Stacktrace?

issue 1 of 1
Type
Bug
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1473
Please wait...
Page is in error, reload to recover