<?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/b/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>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/b/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>Tess1</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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8573354" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/b/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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8573333" width="1" height="1"&gt;</description></item><item><title>How I lost my WinDbg virginity</title><link>http://blogs.msdn.com/b/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;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8180893" width="1" height="1"&gt;</description></item><item><title>ASP.NET Memory Investigation</title><link>http://blogs.msdn.com/b/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;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4368808" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/b/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>Tess1</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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1842670" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/b/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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1840577" width="1" height="1"&gt;</description></item><item><title>ASP.Net Quick Tips - Caching</title><link>http://blogs.msdn.com/b/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;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1827462" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/b/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>Tess1</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&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=557628" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/b/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?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=557367" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory - How much are you caching? + an example of .foreach</title><link>http://blogs.msdn.com/b/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>Tess1</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;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=535308" width="1" height="1"&gt;</description></item></channel></rss>