Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Memory Leak #11
I'm using your project to create a windows service. When any app of my company stop of respond (for a couple seconds) I need to send the .dump to my server via ftp.
So, basically, I'm using this code:
I can't find the error on library or on my code. Removing the dump generation works well.
Could you check with VMMap snapshots where the leak is? At least to see if it's native memory or .NET memory. If it's in .NET please try making PerfView snapshots and compare them (https://channel9.msdn.com/Series/PerfView-Tutorial/PerfView-Tutorial-9-NET-Memory-Investigation-Basics-of-GC-Heap-Snapshots). I will look at this issue but probably someday in January as December is really busy for me.
I collected a VMMap trace of a Minidumper instance and I can see that the leak happens in the Private Data memory:
I later collected umdh trace but most of the allocations seem to be happening in the IL_Stub generation for PInvoke, for example:
It looks to me as a problem in ClrMD. I found one issue which may be related (Microsoft/clrmd#47), but it was for leaking call stacks. However, symptoms are very similar. In a free moment I will have a look at the DAC interfaces we are using.