I've made a c# apps which is normally around 40Mb RAM usage, but for some reason after 1 day or 2 crash with out of memory exception... What i'd like is to see what is using all the memory, but the problem is that I use Visual Studio 2015 and I can't really leave the debugger running because the process Microsoft.VsHub.Server.HttpHostx64.exe is eating all my memory... I tried to let the program crash and attach VS debugger afterwards, but it just hanged forever... So I'd like to get some help to know how can I dump my process when it goes out of memory and see what is using the mem to eventually figure out why ??
So after letting VS running for 1hour it eventually finished memory dump, turns out the culprit seems: ThreadPoolWorkQueue+QueueSegment 249,928 263,922,932 283,922,912 QueueUserWorkItemCallback 999,999 19,999,980 19,999,980
Looks like I am not correctly dequeuing objects from a ConcurrentQueue class. I will investigate.