Home


Tuning DynaCache parameters

Several DynaCache basic parameters are outlined in this section. Despite being relatively simple, they have a significant effect on DynaCache performance and, therefore, need to be considered as part of the benchmark-creation testing activities.

Number of cache entries

Increasing the number of cache entries can optimize performance by increasing the hit ratio and reducing the movement of cached objects. There is no universal rule for defining this number, but the number of cacheable pages in the site, the JVM heap size, typical user activities, and the average cacheable object size are all among the aspects to consider.

Invalidation policy

Because, after a while, it becomes impossible to keep all the cached objects in memory, an invalidation policy must be defined. The choice of invalidation policy has significant effect on DynaCache performance and has to be considered carefully. Refer to DynaCache invalidation for details.

Disk offload and the size of offload files

With the "Enable disk offload" option turned on, if there is no space for a new object, an existing cached object is pushed to disk according to the offload policy in effect. Depending on the policy and the number of cached objects, the size of the offload files may become very large, negatively impacting the overall system performance. Consequently, we should investigate the utility of enabling disk offload as part of our benchmark-creation testing activities.

+

Search Tips   |   Advanced Search