The following message might be found in the logs after each request to a JSS website:
INFO Cache created: '<Site_name>[filtered items]' (max size: 10MB, running total: <size>) created
The issue results in calculating the running total of the filtered items cache incorrectly.
In the long run, performance and stability issues might arise, for example:
Inner exception System.OutOfMemoryException handled at Sitecore.Mvc.Pipelines.MvcEvents.Exception.ShowAspNetErrorMessage.ShowErrorMessage: at System.Collections.ArrayList.set_Capacity (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Collections.ArrayList.EnsureCapacity (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at System.Collections.ArrayList.Add (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089) at Sitecore.Events.Event+EventSubscribers.Add (Sitecore.Kernel, Version=18.0.0.0, Culture=neutral, PublicKeyToken=null) at Sitecore.Events.Event.Subscribe (Sitecore.Kernel, Version=18.0.0.0, Culture=neutral, PublicKeyToken=null) at Sitecore.Events.EventWrapper.Subscribe (Sitecore.Kernel, Version=18.0.0.0, Culture=neutral, PublicKeyToken=null) at Sitecore.Caching.RenderingParametersCache..ctor (Sitecore.Kernel, Version=18.0.0.0, Culture=neutral, PublicKeyToken=null) at Sitecore.Web.SiteInfo.CreateCaches (Sitecore.Kernel, Version=18.0.0.0, Culture=neutral, PublicKeyToken=null) at Sitecore.Web.SiteInfo..ctor (Sitecore.Kernel, Version=18.0.0.0, Culture=neutral, PublicKeyToken=null) at Sitecore.Web.SiteInfo.Create (Sitecore.Kernel, Version=18.0.0.0, Culture=neutral, PublicKeyToken=null) at Sitecore.Services.GraphQL.EdgeSchema.Services.Multisite.MultisiteService.ResolveSite (Sitecore.Services.GraphQL.EdgeSchema, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null) ...
To resolve the issue, for Sitecore XP 10.3 and Sitecore Headless Rendering 21.0.0/21.0.1, download and install the following hotfixes:
Be aware that the hotfixes were built for the specific Sitecore XP and Sitecore Headless Rendering versions and must not be installed on other Sitecore XP and Sitecore Headless Rendering versions or in combination with other hotfixes. In case any other hotfixes have already been installed on a certain Sitecore XP instance, send a request for a compatibility check to Sitecore Support.
Note that the ZIP file contents must be extracted to locate installation instructions and related files inside. The hotfixes must be installed on a CM instance and then synced with other instances using standard development practices.
The hotfixes can be applied to all the topologies (XM, XP) of Sitecore Experience Platform.