Memory Hoard

Topics: Information Provided, Support Request
Nov 14, 2009 at 6:22 AM
Edited Nov 14, 2009 at 6:27 AM

I have just one web application running on my Win7 x64 system - dasBlog and I'm noticing the w3wp.exe process going up as high as 500 MB of private memory.  This seems excessive to me so I created a dump of the process and open it in WinDbg and did a !dumpheap -stat.  Here is the bottom end of the output:

...
GC Heap Size         0xf0e66f0(252602096)

...



000007fef6c03db0 14573 932672 System.Text.RegularExpressions.RegexNode 000007ff006aae00 32997 1055904 newtelligence.DasBlog.Util.Html.HtmlFormatter+FormatInfo 000007fee7457628 763 1064840 System.Data.RBTree`1+Node[[System.Int32, mscorlib]][] 000007fef792d008 7125 1140000 System.Reflection.Emit.DynamicILGenerator 000007fef63be268 23796 1332576 System.Xml.XmlElement 000007fef78fc6c0 43274 1384768 System.Reflection.CerArrayList`1[[System.Reflection.RuntimeMethodInfo, mscorlib]] 000007fef63ba9d8 36352 1454080 System.Xml.NameTable+Entry 000007fef792d538 49975 1599200 System.Reflection.Emit.GenericFieldInfo 000007fef63bebf8 40212 1608480 System.Xml.XmlText 000007fef78f7140 43180 1727200 System.Collections.Generic.List`1[[System.Reflection.RuntimeMethodInfo, mscorlib]] 000007fee744fbd8 3936 2015232 System.Data.DataTable 000007fef79067b0 7500 2508528 System.Collections.Hashtable+bucket[] 000007fef7905b78 64933 2597320 System.Collections.ArrayList 000007fee7453b98 32387 3109152 System.Data.DataRow 000007fef7901590 131431 3154344 System.RuntimeTypeHandle 000007fef78fcc38 134626 3231024 System.RuntimeMethodHandle 000007fee7453a80 14104 3272128 System.Data.DataColumn 000007fef792d598 4750 3785040 System.Reflection.Emit.__FixupData[] 000007fef78fcce0 44901 4669704 System.Reflection.RuntimeMethodInfo 000007fee7455500 4361 6018264 System.Data.RBTree`1+Node[[System.Data.DataRow, System.Data]][] 000007fef7900588 8065 9876904 System.Char[] 000007fef7905db0 70811 10903736 System.Int32[] 000007ff006ab130 299070 16747920 newtelligence.DasBlog.Util.Html.Token 000007fef7906cd0 43963 19916800 System.Byte[] 000007fef78f4748 216211 29357976 System.Object[] 0000000001160190 248 36912576 Free 000007fef78fec90 589873 59673104 System.String

That's quite a bit of memory occupied by just strings alone (~58 MB for 589,873 string instances).  Anybody else seeing excessive memory consumption in the 2.3.9074.18820 release?

Nov 14, 2009 at 5:32 PM

Dasblog uses xml, and the site caching will all be strings in memory.  So i would expect that to represent a large portion of the active memory foot print.

Nov 16, 2009 at 4:07 PM

System.String popping up to the top of the memory footprint pareto isn't too surprising to me either.  Still, my w3wp.exe process this morning is sitting a 630 MB of private memory and 825MB of working set.  That seems just a tad excessive don't you think?  :-)