The loadstat plugin uses SessionManager.getConnectionsCount(false) to return the number of user connections to Openfire. We plot this to a graph. Our graph showed a negative number of connections (which, as you can imagine, struck us as odd ). We double checked the values that are outputted by the plugin: they actually contain negative numbers.
As a workaround, Iām now using the getUserSessionsCount() method.