<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx</link><description>I was writing a post on debugging a high memory usage problem caused by storing too much in session scope, but I realized I got in to tangent discussions all the time so I decided to create a separate post on caching first. Caching is by far the most</description><dc:language>sv-SE</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#517845</link><pubDate>Thu, 26 Jan 2006 17:49:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517845</guid><dc:creator>karl</dc:creator><description>Wouldn't it be nice if we could hook into a static readonly Cache.TotalSize, Application.TotalSize and Session.TotalSize ??&lt;br&gt;&lt;br&gt;Karl</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#517848</link><pubDate>Thu, 26 Jan 2006 17:59:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517848</guid><dc:creator>Travis Owens</dc:creator><description>This post doesn't display well at 1024 width because of the fixed width no wrap fonts in your blue boxes, perhaps you should lower the font size 1 or 2 notches to be more 1024 width friendly.&lt;br&gt;&lt;br&gt;PS: I'm a page layout coder, 1024x1280.</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#517860</link><pubDate>Thu, 26 Jan 2006 18:21:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:517860</guid><dc:creator>Tess</dc:creator><description>Hi Travis, &lt;br&gt;&lt;br&gt;I'd be happy to change it, because i find it a bit annoying too that some boxes stretch way out on the right hand side... but unfortunately I know practically nothing about CSS:( &lt;br&gt;&lt;br&gt;my css override for the blue sections look like this&lt;br&gt;&lt;br&gt;pre.debug&lt;br&gt;{&lt;br&gt;	font-family: Courier;&lt;br&gt;        font-size: 6pt;&lt;br&gt;	background-color: #99CCFF;&lt;br&gt;	text-align:left;&lt;br&gt;}&lt;br&gt;&lt;br&gt;but the 6pt seems to have no effect. If you have any hints on what i'm doing wrong, im all ears:)  always interested in learning new stuff:)&lt;br&gt;&lt;br&gt;</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#532189</link><pubDate>Wed, 15 Feb 2006 03:30:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:532189</guid><dc:creator>Jonno</dc:creator><description>I see you've gone for font size=&amp;quot;2&amp;quot; within the pre tag... If you want to use the font tag you could also try this in your CSS&lt;br&gt;pre.debug, pre.debug font&lt;br&gt;{&lt;br&gt;font-family: Courier;&lt;br&gt;font-size: 6pt;&lt;br&gt;background-color: #99CCFF;&lt;br&gt;text-align:left;&lt;br&gt;} &lt;br&gt;or was the font tag and size just a workaround anyway?&lt;br&gt;All that selector does is say you want to apply the style to elements matching either pre.debug or pre.debug font.</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#532355</link><pubDate>Wed, 15 Feb 2006 10:48:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:532355</guid><dc:creator>Tess</dc:creator><description>Hi Jonno,&lt;br&gt;&lt;br&gt;The only difference i see between your tag and mine above is the additional ,pre.debug font&lt;br&gt;&lt;br&gt;It doesnt seem like it makes a difference when i change it:(&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Tess</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#533999</link><pubDate>Fri, 17 Feb 2006 13:18:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:533999</guid><dc:creator>Howard</dc:creator><description>Hi Tess&lt;br&gt;&lt;br&gt;One thing thats been bothering me for while is the difference between the output of !dumpheap on your posts to the one from the dumps I've got. &amp;nbsp;Here's an example.&lt;br&gt;&lt;br&gt;0:017&amp;gt; !dumpheap -type HttpRuntime&lt;br&gt;------------------------------&lt;br&gt;Heap 0&lt;br&gt; &amp;nbsp; Address &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MT &amp;nbsp; &amp;nbsp; Size &amp;nbsp;Gen&lt;br&gt;0x021d6160 0x01b89df4 &amp;nbsp; &amp;nbsp; &amp;nbsp;116 &amp;nbsp; &amp;nbsp;2 System.Web.HttpRuntime &lt;br&gt;0x021dd8c0 0x021400c8 &amp;nbsp; &amp;nbsp; &amp;nbsp; 12 &amp;nbsp; &amp;nbsp;2 System.Web.Configuration.HttpRuntimeConfigurationHandler &lt;br&gt;0x021dd8cc 0x02140010 &amp;nbsp; &amp;nbsp; &amp;nbsp; 52 &amp;nbsp; &amp;nbsp;2 System.Web.Configuration.HttpRuntimeConfig &lt;br&gt;total 3 objects&lt;br&gt;------------------------------&lt;br&gt;Heap 1&lt;br&gt; &amp;nbsp; Address &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MT &amp;nbsp; &amp;nbsp; Size &amp;nbsp;Gen&lt;br&gt;total 0 objects&lt;br&gt;------------------------------&lt;br&gt;total 3 objects&lt;br&gt;&lt;br&gt;Why do I have 2 heaps and you've only got 1? I'm aware of the large object heap, but Heap 1 isn't a large object heap because in another dump I've got there's objects of only 20K on it and I thought an object had to &amp;gt;1MB to make onto the large object heap.&lt;br&gt;&lt;br&gt;BTW - I've found all your blogs to be of immense value while I'm trying to get my head round how to debug ASP.NET apps. Thanks.</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#534024</link><pubDate>Fri, 17 Feb 2006 15:02:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:534024</guid><dc:creator>Tess</dc:creator><description>Hi Howard, &lt;br&gt;&lt;br&gt;In this particular post, the difference between our outputs with !dumpheap -type is that i am running this on a single processor machine while you are on a multiproc machine. &lt;br&gt;&lt;br&gt;On single processor machines we run with the workstation version of the GC and only use one heap. &amp;nbsp;On a multi-proc machine you would run the server version and have one heap per processor or if you run a hyperthreaded multiproc you would have 2 heaps per processor. &lt;br&gt;&lt;br&gt;!dumpheap -type shows specifics for each heap. !dumpheap (without -type) doesnt specify per heap. &amp;nbsp;&lt;br&gt;&lt;br&gt;If you notice in some of my other posts where i am running !eeheap -gc (showing multiple heaps), i am running those samples on a multiproc machine. &lt;br&gt;&lt;br&gt;!eeversion will show you which runtime version you are running and how many heaps it is using. &lt;br&gt;&lt;br&gt;Hope this clarifies things... &lt;br&gt;&lt;br&gt;Tess</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#535288</link><pubDate>Mon, 20 Feb 2006 08:55:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535288</guid><dc:creator>Jonno</dc:creator><description>Hokay,&lt;br&gt;How about this for a suggestion then...&lt;br&gt;You've specified Courier as the font-family. Unfortunately my system doesn't have Courier on it so my browser substitutes Courier New every time that Courier should be applied.&lt;br&gt;And then it doesn’t apply your specified font sizing unless the calculated font size is greater than 1em. I don’t know why.&lt;br&gt;Anyway, try this as a fix. Replace this line in pre.debug&lt;br&gt;font-family: Courier;&lt;br&gt;with&lt;br&gt;font-family: 'Courier New', Courier, Fixed, monospace;&lt;br&gt;&lt;br&gt;Then you should see the font-size rule make a difference.&lt;br&gt;&lt;br&gt;And given that you have ditched the font tag then you can also ditch the ', pre.debug font' selector too.&lt;br&gt;&lt;br&gt;cheers,&lt;br&gt;Jonno&lt;br&gt;&lt;br&gt;PS Thanks for the posts - mostly over my head but still awesome!</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#535308</link><pubDate>Mon, 20 Feb 2006 10:16:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:535308</guid><dc:creator>Tess</dc:creator><description>Thank you very much Jonno, really appreciate the help... &lt;br&gt;&lt;br&gt;That seemed to do the trick:) I've now been able to change it to 8pt which is about as low as i can go and still have it readable.&lt;br&gt;&lt;br&gt;You learn something new every day... &amp;nbsp;</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#557367</link><pubDate>Wed, 22 Mar 2006 02:53:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:557367</guid><dc:creator>Steve </dc:creator><description>I'm a little confused by the demo in your post. You show us with the .foreach command that there is a cache object for each runtime but then when you demo the !dumpaspnetcache -stat it only list one group of objects. Are those all objects in all cache objects or only the objects in the first cache?</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#557628</link><pubDate>Wed, 22 Mar 2006 09:31:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:557628</guid><dc:creator>Tess</dc:creator><description>Hi Steve,&lt;br&gt;&lt;br&gt;In this particular sample there was only one application so only one cache, if there would have been more than one cache all objects from all caches would have been listed with the !dumpaspnetcache -stat command</description></item><item><title>ASP.Net Quick Tips - Caching</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#1827462</link><pubDate>Wed, 07 Mar 2007 16:02:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1827462</guid><dc:creator>Ancora Imparo</dc:creator><description>&lt;p&gt;This is part four in the ASP.Net tips series . In particular, this is a follow-up to, &amp;quot; ASP.Net Quick&lt;/p&gt;
</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#1840577</link><pubDate>Fri, 09 Mar 2007 02:52:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1840577</guid><dc:creator>Jason Brown</dc:creator><description>&lt;p&gt;In the .Net from 2.0 there is no !dumpaspnetcache command. Do you know if its called something different now, or if there is a way to do something similar?&lt;/p&gt;
</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#1842670</link><pubDate>Fri, 09 Mar 2007 11:23:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1842670</guid><dc:creator>Tess</dc:creator><description>&lt;p&gt;Hi Jason,&lt;/p&gt;
&lt;p&gt;There isn't a !dumpaspnetcache command yet in 2.0 so the only way you can do it is through manually dumping out hte contents of System.Web.Caching.Cache &amp;nbsp;but a few common tasks so you dont have to run though the whole ordeal of dumping it out, would be to do the following&lt;/p&gt;
&lt;p&gt;1. Find the System.Web.Caching.Cache MT in !dumpheap -stat&lt;/p&gt;
&lt;p&gt;2. !dumpheap -mt on that MT&lt;/p&gt;
&lt;p&gt;3. !objsize on the objects so that you can see how much you are saving in cache&lt;/p&gt;
&lt;p&gt;For session state, find the MT for the InProcSessionState objects and run&lt;/p&gt;
&lt;p&gt;.foreach (Session {!dumpheap -mt &amp;lt;MT&amp;gt; -short}){!objsize ${Session}}&lt;/p&gt;
&lt;p&gt;Which will give you the size of the individual Sessions and then from there you can drill down into the particular session object that is causing you grief. &lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Tess&lt;/p&gt;
</description></item><item><title>ASP.NET Memory Investigation</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#4368808</link><pubDate>Mon, 13 Aug 2007 17:54:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4368808</guid><dc:creator>If broken it is, fix it you should</dc:creator><description>&lt;p&gt;This is a bit of a continuation of ASP.NET Memory Issue: High memory usage in a 64bit w3wp.exe process&lt;/p&gt;
</description></item><item><title>How I lost my WinDbg virginity</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#8180893</link><pubDate>Thu, 13 Mar 2008 17:31:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8180893</guid><dc:creator>LavaBlast Software Blog</dc:creator><description>&lt;p&gt;How I lost my WinDbg virginity&lt;/p&gt;
</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#8573333</link><pubDate>Wed, 04 Jun 2008 16:48:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8573333</guid><dc:creator>shivakrishna.k</dc:creator><description>&lt;p&gt;Hi Tess,&lt;/p&gt;
&lt;p&gt;I am very much new to debugging and learning how to debug only by reading your blog. &amp;nbsp;I will greatly apreciate your help. I got the memory dump of w3wp using ADplus. But when I type &amp;quot;!dumpobj poi(22d2f00+4c)&amp;quot; to get the string at the address windbg is giving an error saying invalid parameter. I copied sos.dll to debuggers folder from framework folder. I am using latest version(6.9.0003.113) of windbg.I googled for the solution for 2 days but no luck. Please help me in solving this problem. Thanks in advance.&lt;/p&gt;
&lt;p&gt;Shiva&lt;/p&gt;
</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/tess/archive/2006/01/26/asp-net-memory-how-much-are-you-caching-an-example-of-foreach.aspx#8573354</link><pubDate>Wed, 04 Jun 2008 16:58:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8573354</guid><dc:creator>Tess</dc:creator><description>&lt;p&gt;Not sure I follow,&lt;/p&gt;
&lt;p&gt;What is at address 22d2f00 and what is at offset 4c?&lt;/p&gt;
&lt;p&gt;I.e. what would you get if you did !do 22d2f00 &lt;/p&gt;
</description></item></channel></rss>