Application Caches
Submitted by Guest on Wed, 22/12/2021 - 09:43
The Application Caches window displays current memory use and statistics for select caches in OpenVPMS.
This is launched by clicking Caches in Administration - System.
The table displays:
|
The cache name. |
|
The number of elements currently in the cache. |
|
The maxium number of elements the cache can hold, before old elements are discarded. |
|
The cache use, expressed as a percentage. |
|
The number of times an element was in the cache when it was requested. |
|
The number of times an element was not in the cache when it was requested. |
|
An approximate calculation of the cache size. |
The buttons are:
|
Change the selected cache. |
|
Refreshes the statistics. |
|
Resets the Cache Hits and Cache Misses to zero. This can be used to help evaluate the effectiveness of a change to the Max Elements of a cache. |
|
Releases memory allocated to a cache. |
|
Close the window. |
Changing a Cache
The Edit button displayed a Change Cache window for the selected cache.
This displays the current maximum elements for the cache, and provides options to select a suggested value for the cache size, or enter a new one.
The cache size should be changed if:
- there are too many cache misses vs cache hits.
This indicates that the cache is too small and that Max Elements should be increased. - memory consumption is too high
Here Max Elements should be decreased.
Note that the suggested size does not take into account memory consumption.