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
Format of statistics records Each statistics record starts with the following lines: =========================================================================== 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) 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 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. |