Several types of statistics regarding internal operation are kept and optionally written to the cache log. A separate log for each cache can be maintained, or all statistics may be written to the same log. This section discusses the following cache log topics:
To log statistics, you must configure the Cache Manager configuration file.
To configure the log:
Specify the stat-files and stat-interval keywords in the cache stanza of the Cache Manager configuration file.
You can modify statistics settings without stopping, reconfiguring, and restarting the Cache Manager.
To modify statistics gathering settings:
Specify the cacheadm statistics command. Note however, that changes made with the cacheadm statistics command are not saved when the Cache Manager is restarted.
The statistics log is a plain ASCII file that can be processed or imported by spreadsheets or database programs. Three types of records are written:
mm/dd/yy hh:mm:ss id Initialization: interval n seconds
Where:
mm/dd/yy hh:mm:ss id Termination
Where:
mm/dd/yy hh:mm:ss id statistics
Where:
Field Number | Contents | Description | Counters Reinitialized to Zero |
---|---|---|---|
1 | reads | Number of read operations performed against the cache | Yes |
2 | writes | Number of write operations performed against the cache | Yes |
3 | closes | Number of close operations performed on objects in the cache | Yes |
4 | open read | Number of open-read operations performed on objects in the cache | Yes |
5 | open write | Number of open-write operations performed on objects in the cache | Yes |
6 | open write query | Number of open-write-query operations performed on objects in the cache | Yes |
7 | read hits | Number of read hits on objects in the cache | Yes |
8 | write hits | Number of write hits on objects in the cache | Yes |
9 | write query hits | Number of write query hits on objects in the cache | Yes |
10 | initializations | Number of new sessions established with this cache | Yes |
11 | terminations | Number of sessions terminated with this cache | Yes |
12 | purges | Number of objects deleted from this cache | No |
13 | memory used | Amount of memory used by objects in the memory portion of the cache | No |
14 | disk used | Amount of disk space used by objects in the disk portion of the cache | No |
15 | memory available | Amount of memory still available for use by objects in the memory portion of the cache | No |
16 | disk available | Amount of disk space still available for use by objects in the disk portion of the cache | No |
17 | memory object count | Number of objects in the memory portion of the cache | No |
18 | file object count | Number of objects in the disk portion of the cache | No |
19 | session count | Number of sessions currently active against the cache | No |