Experience Analytics caches are recreated multiple times


Description

The ExperienceAnalytics.Sites, ExperienceAnalytics.DimensionItems and ExperienceAnalytics.DimensionKeys caches might be created multiple times instead of being reused. Messages similar to the following can appear in the Sitecore XP logs:

INFO  Cache created: 'ExperienceAnalytics.Sites' (max size: 1MB, running total: 2854MB)
...
INFO  Cache created: 'ExperienceAnalytics.Sites' (max size: 1MB, running total: 2855MB)

Solution

To resolve the issue, add an attribute of singleInstance="true" to the following nodes: