-1

i am using in-memory distributed cache as per this documentation -

https://docs.microsoft.com/en-us/aspnet/core/performance/caching/distributed?view=aspnetcore-6.0#distributed-memory-cache

in the following documentation i am using IDistributedCache implementation with Distributed memory cache

Is there a way to monitor the memory usage in a deployed environment and also in local environments? I haven't found any source online.

Adithya Sai
  • 1,354
  • 2
  • 16
  • 29
  • Getting the size of an object in memory is pretty hard, and that's on purpose. You can read up on it more [in this Q&A](https://stackoverflow.com/q/207592/9363973), as well as what Microsoft themselves said about the topic [here](https://docs.microsoft.com/en-us/archive/blogs/cbrumme/size-of-a-managed-object) – MindSwipe May 20 '22 at 08:54

0 Answers0