EF Core memory leak
We have memory leak in our application which grows over a week. Help would be appreciated on why Heap generation 2 grows and why ServiceProviderEngineScope is retaining so much memory. Here are dotmemory tracking,
Here is the dominators map
Thanks in advance
Consider the correct way of using .AsNoTracking() in your project whenever you don't need or want to edit or manipulate fetched data (it often happens in report usage scenarios)
@yoganr Please post the OutOfMemoryException, including stack trace.
@yoganr Please post the
OutOfMemoryException, including stack trace.
We got it solved the memory leakage in our singleton class which was resolving Services from root scope, when we change it to create new scope seems to resolved the issue. Thanks for the help guys!