In order to collect statistics over period of time following groovy script can be used: StatsDumper.groovy. It’s a Simple JMX client that connects to Tigase and periodically saves all statistics to files.
It takes following parameters:
$ groovy StatsDumper.groovy [hostname] [username] [password] [dir] [port] [delay(ms)] [interval(ms)] [loadhistory(bool)]
hostname
- address of the instanceusername
- JMX usernamepassword
- JMX usernamedir
- directory to which save the files with statisticsport
- port on which to make the connectiondelay
(ms) - initial delay in milliseconds after which statistics should be savedinterval
(ms) - interval between each retrieval/saving of statisticsloadhistory
(bool) - indicates whether or not load statistics history from server (if such is enabled in Tigase)