Load Statistic Plugin Readme

Overview

The statistic plugin prints usage information of the database connection pool and established client sessions.

Installation

Copy the file, "statistic.jar" into the plugins directory of your Openfire installation. The plugin will then be automatically deployed.

Configuration

At the moment there is no new page to configure the plugin. However, the plugin can be configured by setting a few system properties. Read the "Using the Plugin" section to learn which system properties to use.

Using the Plugin

The plugin will collect information every few seconds and will print the collected information to a log file every minute. The log file is a comma-delimited file that can be easily processed in Excel. You can configure the plugin by setting the system properties shown in the table below.

System Property Description
statistic.frequency Number of milliseconds to wait before collecting information. Default value is 5000 (5 seconds)
statistic.filename Name of the file to use to store the statistics. The file will always be stored in the logs folder. Default value is "stats.txt".

The format of the log file is the following:

  1. Timestamp - Timestamp when the data was collected
  2. DB min - Minimum number of connections the pool may have
  3. DB max - Maximum number of connectiosn the pool may have
  4. DB current - Current number of connections the pool has
  5. DB used - Current number of connections being used
  6. Sessions - Current number of client sessions in the server

When processing the file in Excel you may want to add the following columns: