Anyone have some experience of MemoryCache optimization (priorities or other entry options, compacting manually, set memory limit?) in new dotnet versions (8 on DXP in our case)?
We have support reporting this finding in a memory dump:
- From the dump file, we see the SQL connection has to wait GC to finish (gc_heap::try_allocate_more_space).
Then we got a list of item types in the cache. Sizes reported are reasonable to me but it seems like when app is under stress freeing up memory takes time and blocks other work.