33.4 Obtaining View Cache Information

To examine a view's cache information, use cleartool getcache -view. The view server prints information about the view cache sizes and hit rates. You can use this information in several ways:

Example:

cleartool getcache -view jo_main
Lookup cache: 29% full, 1121 entries ( 56.8K), 15832 requests, 75% hits
Readdir cache: 4% full, 24 entries ( 36.5K), 4159 requests, 83% hits
Fstat cache: 31% full, 281 entries (105.1K), 55164 requests, 100% hits
Object cache: 26% full, 1281 entries (176.6K), 40626 requests, 72% hits
Total memory used for view caches: 375.0Kbytes
The current view server cache limits are:
Lookup cache: 201312 bytes
Readdir cache: 838860 bytes
Fstat cache: 352296 bytes
Object cache: 704592 bytes
Total cache size limit: 2097152 bytes

The view cache includes these types of subcaches:

To find the size of the total view cache, sum the sizes of these components.

NOTE: On UNIX computers, you can force a view_server process to write cumulative cache-performance (and other) statistics to its log file, /var/adm/atria/log/view_log then reset all the statistics accumulators to zero, by running the following command on the host where the view_server executes:

kill -HUP view_server-process-ID

Analyzing the Output

getcache -view provides this information:

Here are some suggestions for analyzing this information: