Which object are taking aroung 4GB of memory??? Help to analize the dump

Hello,

I've got an alert that on an application server the w3wp is aroung 5GB, I've performed a snapshot using dotMemory console profiler and I've uploaded the file via webform ([10584]-w3wp.exe.2018-10-30T16-31-05.319.rar) 

Looking at the Generations I got

 

But I am not able to dig into... I suspect it's the session which is inproc but I need your help to dig further

 

Thanks

3 comments
Comment actions Permalink

Hello,

In general, .NET can keep free memory regions in the heaps to make future allocations faster. Free memory will be released when system is low of memory. It's .NET Framework optimization and you can't affect this behavior.

How much memory do you have on your machine?

Besides, there are several IIS settings like Virtual Memory Limit, Private Memory Limit, cache limit etc. which can affect memory consumption. Please try to follow the advice in this article: https://stackoverflow.com/questions/245727/iis-worker-process-using-a-lot-of-memory

0
Comment actions Permalink

Hello,

On the machine where I took the dump it has 12GB total, I don't know how many were avaiable at the time of the dump.... so I don't have to take care even if it's taking all those memory?

0
Comment actions Permalink

Yes, most likely you can't affect this behavior by changing your code but you can try to change IIS settings (for example, set up pool recycling). We don't see any problems in your code in the attached workspace which could cause this behavior.

Look at Gen 0 heaps: they are contain small orange region at the end of each heap. This is a pinned objects. If you open subset of any of these Gen 0 heaps, you'll see system object retained by local variable. Probably (this is only an assumption) these pinned objects force creation new heap instead of using free place in the existing one. Most likely it's the IIS problem

 

 

0

Please sign in to leave a comment.