Questions tagged [dotmemory]

dotMemory is a memory profiler created by JetBrains for .NET applications. Use this tag if your questions are specific to using dotMemory, or are specific to dotMemory's behavior. Questions about memory usage in .NET are off-topic for this tag.

Additional links:

60 questions
12
votes
3 answers

How to interpret the results from BenchmarkDotNet and dotMemory?

So, I have a following piece of code in my Main() method for (int x = 0; x < 100; x++) // to mimic BenchmarkDotnet runs for (int y = 0; y < 10000; y++) LogicUnderTest(); Next, I have the following class under the test [MemoryDiagnoser,…
Semuserable
  • 454
  • 6
  • 24
6
votes
2 answers

Am I doing something wrong combining dotMemory, xUnit and async

I have a unit test where I try to verify that I have disposed of a document that was once attached to the main user interface. The unit test has to be async in that everything needs to be run under an STA thread and I have to await the user…
bradgonesurfing
  • 30,949
  • 17
  • 114
  • 217
5
votes
1 answer

Generation 2 memory cleared as soon as I get a snapshot in .NET using dotMemory

I am debugging an issue with high memory usage in a .NET web app using JetBrains dotMemory. The Profiler claims that memory usage in Generation 2 is very high. When I click to "Get Snapshot" however, the memory usage is instantly cleared and I…
cbp
  • 25,252
  • 29
  • 125
  • 205
4
votes
0 answers

The problem of improper use of RAM in ASP.NET Core Web API project

I have an ASP.NET Core 6 Web API project. When I'm running the project, my project takes about 2 GB of memory! I found this problem in the dotMemory application: There seems to be a problem with this part (Routing) My project has some routes. For…
4
votes
1 answer

Can't start memory profiling using dotMemory

I'm attempting to use JetBrains dotMemory to profile a ASP.NET MVC web app running on IIS10. When I attach to process w3wp.exe and click Run get the following error: Can't start profiling. Details: Profiler is unable to attach to the process:…
Ray
  • 187,153
  • 97
  • 222
  • 204
3
votes
1 answer

Analyzed memory dump shows only references with DotMemory

I have a memory leak problem on a AWS dockerized microservice deployed with ECS. I wanted to analyze the dump with DotMemory so I used exec to connect to the container, gcore to save the dump and then transfer that dump to an S3 bucket so I could…
MrDemien
  • 74
  • 8
2
votes
1 answer

dotMemory command line scheduled snapshots

I'm running dotMemory command line against an IoT Windows Forms application which requires many hours of tests on a custom appliance. My purpose is to get memory snapshots on a time basis, while the application is running on the appliance. For…
2
votes
1 answer

NLog: ObjectReflectionCache class always initializes a MruCache object with huge capacity

I develop a WPF application which uses NLog. When I profile it using dotMemory I can see ~300k of Memory used by a Dictionary which NLogs creates during configuration. I do not know what the ObjectReflectionCache and MruCache are used for an whether…
buddde
  • 23
  • 4
2
votes
1 answer

`dotMemoryUnit` with `dotnet test`

I typically run my unit tests using dotnet test. The framework I'm using is xunit. As such, I'm not sure how to run dotMemory unit tests with the CLI. The documentation recommends: dotMemoryUnit.exe -targetExecutable="C:\NUnit…
rhughes
  • 9,257
  • 11
  • 59
  • 87
2
votes
1 answer

Why is MemoryStream not disposed?

I'm attempting a simple test using dotMemory. I would expect the following test would pass: [Test] public void MemoryStream_is_disposed() { using (var stream = new MemoryStream()) { } GC.Collect(); GC.WaitForPendingFinalizers(); …
ket
  • 728
  • 7
  • 22
2
votes
1 answer

Why EF Core 2.2.6 does not garbage collect?

I am using the dotMemoryUnit to prove the my DbContext object is getting garbage collected properly. I feel that this code should work properly in a unit test, but the test always fails. The only thing I can guess is EF Core is holding a reference…
Mike Therien
  • 928
  • 3
  • 10
  • 25
2
votes
1 answer

dotMemory The resource loader failed to find MUI file. When try to profile local IIS

When I try to connect to Local IIS with dotMemory I am getting error dotMemory Unable to start profiling. The resource loader failed to find MUI file. OK I am using v.2018.2.3
Vova Bilyachat
  • 18,765
  • 4
  • 55
  • 80
2
votes
2 answers

JetBrains dotMemory: Unable to import the dump: 64-bit dumps of 32-bit processes are currently not supported

I have downloaded ProcDump from Windows Sysinternals site. https://learn.microsoft.com/en-us/sysinternals/downloads/procdump I have used below command to initiate dump collection. procdump -ma Here is the command line output …
kudlatiger
  • 3,028
  • 8
  • 48
  • 98
2
votes
2 answers

Binding to dictionary, memory leak is reported, how to fix?

dotMemory tells me (screenshot below, "WPF binding leak") what there is a memory leak when binding to dictionary like this:
Sinatr
  • 20,892
  • 15
  • 90
  • 319
2
votes
1 answer

Memory leak on CanExecuteChanged using Catel Command

I was profiling a WPF application that uses Catel as MVVM Framework and I've seen that in a ViewModel I've got 2 retention path as Now I create such RadMenuItem in a behavior I attach to the context menu and they're defined as protected virtual…
advapi
  • 3,661
  • 4
  • 38
  • 73
1
2 3 4