We got a problem in one of our ASP.net apps, the mscorwks.dll is using a lot of memory. Anyone got any tips on where to start looking for the memory leak ?
mscorwks!EEVirtualAlloc+119: 1.26 GBytes worth of outstanding allocations.
We got a problem in one of our ASP.net apps, the mscorwks.dll is using a lot of memory. Anyone got any tips on where to start looking for the memory leak ?
mscorwks!EEVirtualAlloc+119: 1.26 GBytes worth of outstanding allocations.
The steps to investigate which managed types are causing the leak, can be summarized in the following steps:
.loadby sos mscorwks
(replace mscorwks
with clr
when your application runs on v4.0)!dumpheap -stat
!dumpheap -mt <INSTANCE METHODTABLE>
(the methodTable can be retrieved from the output of the previous command) !gcroot <INSTANCE ADDRESS>
At this point, you should have enough data to find the source of your leak.
A more detailed article about these steps can be found here.