NexJ Logo

Configuring persistent statistics

Configure persistent statistics to store NexJ CRM performance statistics in the NexJ StatDatabase or in InfluxDB. Persistent statistics are historical performance statistics collected from NexJ CRM that are maintained across server restarts.

To store persistent statistics in InfluxDB, you must also add the required mixin to the environment file and create an InfluxDB channel connection. For more information, see Persisting statistics to InfluxDB.

The dumpStats diagnostic command in NexJ System Admin Console only exports statistics persisted to the NexJ StatDatabase. Statistics persisted to InfluxDB cannot be exported using this command.

Persistent statistics are enabled by default in the NexJ model. NexJ System Admin Console configuration overrides the environment file configuration. For more information about configuring persistent statistics in the environment file, see NexJ CRM deployment information.

To configure persistent statistics:

  1. In NexJ System Admin Console, navigate to the Statistics page.
  2. In the Statistics list, expand the node for your NexJ application, then select AdministrationConfiguration options for statistics display in the details area.
  3. To enable or disable persistent statistics:
    1. Beside Persistent Statistics Enabled in the details area, double-click in the Value column. A text entry field displays.
    2. To enable persistent statistics, enter Y. To disable persistent statistics, enter NThe persistent statistics are enabled or disabled.
  4. [Optional] To specify the amount of time that persisted statistics are stored before being deleted, do one of the following:
    1. If storing the statistics in the StatDatabase, enter a timeout value (in minutes) in the Value column beside Persistent Statistics Timeout (min) in the details area. The default value is 10,080 (7 days).
    2. If storing the statistics in InfluxDB, enter the timeout value in InfluxDB. For instructions, see the InfluxDB documentation at https://docs.influxdata.com/influxdbThe persistent statistics timeout value is updated.
  5. [Optional] To specify the frequency at which to sample statistics, do one of the following:

    Sampling intervals smaller than the default setting might affect application performance. Small sampling intervals can also create fluctuations in sample data that can make analysis difficult.

    1. If storing the statistics in the StatDatabase, enter a timeout value (in seconds) in the Value column beside Statistics Sampling Interval (s) in the details area. The default value is 60 (1 minute).
    2. If storing the statistics in InfluxDB, enter the timeout value in InfluxDB. For instructions, see the InfluxDB documentation at https://docs.influxdata.com/influxdb
      The sampling interval value is updated.

Persistent statistics are configured for NexJ CRM. Changes take effect immediately.

Persisting statistics to InfluxDB
Exporting persistent statistics