<?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>I am getting OutOfMemoryExceptions. How can I troubleshoot this?</title><link>http://blogs.msdn.com/b/johan/archive/2007/01/11/i-am-getting-outofmemoryexceptions-how-can-i-troubleshoot-this.aspx</link><description>Problem: You've written an ASP.NET application that is getting OutOfMemoryExceptions. Cause: Let's find out... Resolution: Use Windbg to take a look at the heap. Is it a leak? Take a look at the memory usage of you application using perfmon. If memory</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: I am getting OutOfMemoryExceptions. How can I troubleshoot this?</title><link>http://blogs.msdn.com/b/johan/archive/2007/01/11/i-am-getting-outofmemoryexceptions-how-can-i-troubleshoot-this.aspx#10354386</link><pubDate>Sat, 29 Sep 2012 10:10:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10354386</guid><dc:creator>Pavel Biryukov</dc:creator><description>&lt;p&gt;Thanks! Very useful post! &lt;/p&gt;
&lt;p&gt;5 years have passed - but it&amp;#39;s still actual for debugging in the production environment :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10354386" width="1" height="1"&gt;</description></item><item><title>re: I am getting OutOfMemoryExceptions. How can I troubleshoot this?</title><link>http://blogs.msdn.com/b/johan/archive/2007/01/11/i-am-getting-outofmemoryexceptions-how-can-i-troubleshoot-this.aspx#9858873</link><pubDate>Thu, 06 Aug 2009 11:54:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9858873</guid><dc:creator>Roahn Luo</dc:creator><description>&lt;p&gt;Great post!! It's really good! I almost envy you, Johan!!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9858873" width="1" height="1"&gt;</description></item><item><title>re: I am getting OutOfMemoryExceptions. How can I troubleshoot this?</title><link>http://blogs.msdn.com/b/johan/archive/2007/01/11/i-am-getting-outofmemoryexceptions-how-can-i-troubleshoot-this.aspx#6951454</link><pubDate>Wed, 02 Jan 2008 12:45:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6951454</guid><dc:creator>JohanSt</dc:creator><description>&lt;p&gt;Please check your version of sos. Try loading it using &amp;quot;.loadby sos mscorwks&amp;quot;&lt;/p&gt;
&lt;p&gt;/ Johan&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6951454" width="1" height="1"&gt;</description></item><item><title>re: I am getting OutOfMemoryExceptions. How can I troubleshoot this?</title><link>http://blogs.msdn.com/b/johan/archive/2007/01/11/i-am-getting-outofmemoryexceptions-how-can-i-troubleshoot-this.aspx#6888330</link><pubDate>Fri, 28 Dec 2007 23:24:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6888330</guid><dc:creator>HS</dc:creator><description>&lt;p&gt;Also I was wondering why does the &amp;quot;!dumpheap -stat&amp;quot; doesn't show me the type of objects and their individual sizes when I use this command on the dump that I collected whereas in your case it shows each type and its associated size.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6888330" width="1" height="1"&gt;</description></item><item><title>re: I am getting OutOfMemoryExceptions. How can I troubleshoot this?</title><link>http://blogs.msdn.com/b/johan/archive/2007/01/11/i-am-getting-outofmemoryexceptions-how-can-i-troubleshoot-this.aspx#6827258</link><pubDate>Fri, 21 Dec 2007 16:49:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6827258</guid><dc:creator>Jaszeer</dc:creator><description>&lt;p&gt;Johan,&lt;/p&gt;
&lt;p&gt;Excellent Article! I was looking for this information for almost four years&lt;/p&gt;
&lt;p&gt;can you help me in building strategy for toubleshooting OOM in web applications with 10-15 pages&lt;/p&gt;
&lt;p&gt;it would be great help&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6827258" width="1" height="1"&gt;</description></item><item><title>re: I am getting OutOfMemoryExceptions. How can I troubleshoot this?</title><link>http://blogs.msdn.com/b/johan/archive/2007/01/11/i-am-getting-outofmemoryexceptions-how-can-i-troubleshoot-this.aspx#3401726</link><pubDate>Tue, 19 Jun 2007 12:56:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3401726</guid><dc:creator>orangy</dc:creator><description>&lt;p&gt;Johan, &lt;/p&gt;
&lt;p&gt;Thanks for your answer! Actually, it is .NET 2.0. Is it normal for this version too?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3401726" width="1" height="1"&gt;</description></item><item><title>re: I am getting OutOfMemoryExceptions. How can I troubleshoot this?</title><link>http://blogs.msdn.com/b/johan/archive/2007/01/11/i-am-getting-outofmemoryexceptions-how-can-i-troubleshoot-this.aspx#3381235</link><pubDate>Mon, 18 Jun 2007 13:39:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3381235</guid><dc:creator>JohanSt</dc:creator><description>&lt;p&gt;Hi Ilya,&lt;/p&gt;
&lt;p&gt;This is very common for Framework 1.1.&lt;/p&gt;
&lt;p&gt;You'll normally see these small free segments after static arrays. So pay no further attention to them.&lt;/p&gt;
&lt;p&gt;/ Johan&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3381235" width="1" height="1"&gt;</description></item><item><title>re: I am getting OutOfMemoryExceptions. How can I troubleshoot this?</title><link>http://blogs.msdn.com/b/johan/archive/2007/01/11/i-am-getting-outofmemoryexceptions-how-can-i-troubleshoot-this.aspx#3343872</link><pubDate>Sat, 16 Jun 2007 21:21:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3343872</guid><dc:creator>Ilya Ryzhenkov</dc:creator><description>&lt;p&gt;Hello, thanks for the article. I'm trying to pinpoint OOM problem and looking at LOH dump I can't understand small objects in the LOH:&lt;/p&gt;
&lt;p&gt;0:028&amp;gt; !EEHeap -gc&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;Large object heap starts at 0x04f21000&lt;/p&gt;
&lt;p&gt; segment &amp;nbsp; &amp;nbsp;begin allocated &amp;nbsp; &amp;nbsp; size&lt;/p&gt;
&lt;p&gt;04f20000 04f21000 &amp;nbsp;05ee4238 0x00fc3238(16527928)&lt;/p&gt;
&lt;p&gt;31d60000 31d61000 &amp;nbsp;32489e00 0x00728e00(7507456)&lt;/p&gt;
&lt;p&gt;Total Size &amp;nbsp;0x9aec2a0(162448032)&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;0:028&amp;gt; !dumpheap 04f21000 &amp;nbsp;05ee4238&lt;/p&gt;
&lt;p&gt; Address &amp;nbsp; &amp;nbsp; &amp;nbsp; MT &amp;nbsp; &amp;nbsp; Size&lt;/p&gt;
&lt;p&gt;04f21000 03d25350 &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 Free&lt;/p&gt;
&lt;p&gt;04f21010 79124228 &amp;nbsp; &amp;nbsp; 4096 &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;04f22010 03d25350 &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 Free&lt;/p&gt;
&lt;p&gt;04f22020 79124228 &amp;nbsp; &amp;nbsp; 4096 &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;04f23020 03d25350 &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 Free&lt;/p&gt;
&lt;p&gt;04f23030 79124228 &amp;nbsp; &amp;nbsp; &amp;nbsp;528 &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;04f23240 03d25350 &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 Free&lt;/p&gt;
&lt;p&gt;04f23250 79124228 &amp;nbsp; &amp;nbsp; 4096 &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;04f24250 03d25350 &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 Free&lt;/p&gt;
&lt;p&gt;04f24260 79124228 &amp;nbsp; &amp;nbsp; 6952 &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;04f25d88 03d25350 &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 Free&lt;/p&gt;
&lt;p&gt;04f25d98 79124228 &amp;nbsp; &amp;nbsp; 4096 &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;04f26d98 03d25350 &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 Free&lt;/p&gt;
&lt;p&gt;04f26da8 79124228 &amp;nbsp; &amp;nbsp; 4096 &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;04f27da8 79124228 &amp;nbsp; &amp;nbsp; 4096 &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;04f28da8 03d25350 &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 Free&lt;/p&gt;
&lt;p&gt;04f28db8 79124228 &amp;nbsp; &amp;nbsp; 4096 &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;04f29db8 79124228 &amp;nbsp; &amp;nbsp; &amp;nbsp;528 &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;04f29fc8 03d25350 &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 Free&lt;/p&gt;
&lt;p&gt;04f29fd8 79124228 &amp;nbsp; &amp;nbsp; &amp;nbsp;528 &amp;nbsp; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;04f2a1e8 03d25350 &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 Free&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;:028&amp;gt; !do 04f29fd8 &lt;/p&gt;
&lt;p&gt;Name: System.Object[]&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;Size: 528(0x210) bytes&lt;/p&gt;
&lt;p&gt;Array: Rank 1, Number of elements 128, Type CLASS&lt;/p&gt;
&lt;p&gt;Element Type: System.Object&lt;/p&gt;
&lt;p&gt;Those objects of 528 bytes are object[128] filled with strings (those are stored in Gen2 heap). I have no idea, what are those 16 Free bytes in the LOH between arrays.&lt;/p&gt;
&lt;p&gt;Could you please shed some light on this dumps? Or may be I'm doing something wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3343872" width="1" height="1"&gt;</description></item><item><title>re: I am getting OutOfMemoryExceptions. How can I troubleshoot this?</title><link>http://blogs.msdn.com/b/johan/archive/2007/01/11/i-am-getting-outofmemoryexceptions-how-can-i-troubleshoot-this.aspx#1513617</link><pubDate>Tue, 23 Jan 2007 14:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1513617</guid><dc:creator>vikram</dc:creator><description>&lt;p&gt;you are GOD..... got just want i wanted.....&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1513617" width="1" height="1"&gt;</description></item><item><title>re: I am getting OutOfMemoryExceptions. How can I troubleshoot this?</title><link>http://blogs.msdn.com/b/johan/archive/2007/01/11/i-am-getting-outofmemoryexceptions-how-can-i-troubleshoot-this.aspx#1476711</link><pubDate>Tue, 16 Jan 2007 12:10:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1476711</guid><dc:creator>JohanSt</dc:creator><description>&lt;p&gt;Hi Heather,&lt;/p&gt;
&lt;p&gt;Well if you're not done with the images, then I can only assume there's something else on the heap that needs to be dealt with. &lt;/p&gt;
&lt;p&gt;I'd get a hangdump right before loading the images and analyze what's on the heap at that time. Do you have any data connections, streams, etc. that need to be closed?&lt;/p&gt;
&lt;p&gt;/ Johan&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1476711" width="1" height="1"&gt;</description></item></channel></rss>