Internal Statistics

Internal Statistics Files

Upon receipt of SIGUSR1 signal, the following files of internal statistics are generated:

drwebd_client_server_sessionN.txt - statistics on connections to Dr.Web Daemon addresses with the specified weight greater than 0

drewbd_client_backup_sessionN.txt - statistics on connections to backup Dr.Web Daemon addresses with the specified weight equal to 0

nss_thr.txt - statistics on NSS Daemon thread pool,

where N is the address ordinal number in the list specified as Address parameter value in the [DaemonCommunication] section, starting from 0. Addresses with the weight greater than 0 and backup addresses are numbered independently (that is, drwebd_client_server_session.txt and drewbd_client_backup_session files are allowed to have the same number). At that, if 0 weight is not specified for any address, drwebd_client_server_sessionN.txt files are not created. Similarly, if weight greater than  0 is not specified for any address, drwebd_client_server_sessionN.txt files are not created.

Statistics on a thread pool and its persistent connections linked to these pools is collected only when it is enabled explicitly in thread pool settings (CheckPoolOptions parameter in the [NSS] configuration file section) by specifying an additional parameter stat = yes.

Example:

CheckPoolOptions = 2-20, stat = yes

Внимание!

Note than when statistics is saved, files are not overwritten; that is, if a file already exists, new data is added to the end of this file.

Format of statistics records

Each statistics record starts with the following lines:

===========================================================================
start:  Tue Oct 9 14:44:15 2008
curr:   Tue Oct 9 14:44:29 2008
period: 0d 0h 0m 14s

where start time of statistics gathering, time of saving statistics to the file, and period for which statistics is gathered are displayed.

For drwebd_client_[server|backup]_sessionN.txt files that contain statistics on connections, a record has the following format:

closed: 32 (0.0798005 num/sec)
total created = 34 (0.084788 num/sec)
created on request = 2 (0.00498753 num/sec)
closed by timeout = 0 (0 num/sec)
avg number = 2.58824
max cre = 4 est=3 don=0 act=3
current = 4

where:

closed - number of connections closed for the period (the number is increased each time the statistics is saved)

total created - total number of established connections

created on request - number of connections created on request

closed by timeout - number of connections closed due to timeout

avg number - average number of unclosed connections

max - maximum number of

ocre - created connections

oest - established but not used connections

odon - not established connections

oact - active connections

current - total number of connections

num/sec - frequency; that is, parameter value divided by the period length (in seconds)

For the nss_thr.txt file, statistics record is as follows:

min = 2 max = 2147483647 type = 0 freetime = 120
busy max = 0 avg = 0
requests for new threads = 0 (0 num/sec)
creating fails = 0
max processing time = 0 ms; avg = 0 ms
curr = 2 busy = 0

where:

first line contains information on the maximum and minimum number of threads in a pool, type of the pool, maximum time (in seconds) for an additional thread to close upon inactivity;

second line contains information on the maximum and average number of busy threads;

third line contains information on the number and frequency of requests to create additional threads;

fourth line contains information on the number of failed attempts to create threads (such failure can be caused by insufficient resources);

fifth line contains information on the maximum and average time of processing the requests, in milliseconds;

sixth line contains information on the current number of threads in a pool and number of busy threads.