<?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>.NET Debugging Demos Lab 4: High CPU Hang - Review</title><link>http://blogs.msdn.com/b/tess/archive/2008/02/27/net-debugging-demos-lab-4-high-cpu-hang-review.aspx</link><description>Hope you have had a chance to go through the high CPU lab... Some people already commented with the solution in the lab instructions for this lab but here are my answers and commentary on the lab. Reproducing the issue: 1. Recycle IIS (IISReset) 2. Browse</description><dc:language>sv-SE</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: .NET Debugging Demos Lab 4: High CPU Hang - Review</title><link>http://blogs.msdn.com/b/tess/archive/2008/02/27/net-debugging-demos-lab-4-high-cpu-hang-review.aspx#9413430</link><pubDate>Thu, 12 Feb 2009 00:06:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9413430</guid><dc:creator>Tess1</dc:creator><description>&lt;p&gt;Nitin,&lt;/p&gt;
&lt;p&gt;Have a look at some of the other posts in the post index, &amp;nbsp;there are various different high cpu posts there that should probably give you the start that you need.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9413430" width="1" height="1"&gt;</description></item><item><title>re: .NET Debugging Demos Lab 4: High CPU Hang - Review</title><link>http://blogs.msdn.com/b/tess/archive/2008/02/27/net-debugging-demos-lab-4-high-cpu-hang-review.aspx#9412954</link><pubDate>Wed, 11 Feb 2009 19:26:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9412954</guid><dc:creator>Nitin</dc:creator><description>&lt;p&gt;Good article. But it is only focused on high CPU due to memory issues and garbage collection. I am running into a scenario when the CPU spikes to 100% for w3wp process but the system is doing fine for memory. I do not see more than 2% GC time and the ratio of Gen 0, Gen 1 and Gen 2 is perfectly fine. &lt;/p&gt;
&lt;p&gt;What else could be wrong? How to debug that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9412954" width="1" height="1"&gt;</description></item><item><title>Using VSTS Test and Profilers to troubleshoot a High CPU in GC issue</title><link>http://blogs.msdn.com/b/tess/archive/2008/02/27/net-debugging-demos-lab-4-high-cpu-hang-review.aspx#8991028</link><pubDate>Wed, 08 Oct 2008 11:24:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8991028</guid><dc:creator>If broken it is, fix it you should</dc:creator><description>&lt;p&gt;Following my post about how to troubleshoot a low CPU performance issue with VSTS Test, I will now do&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8991028" width="1" height="1"&gt;</description></item><item><title>re: .NET Debugging Demos Lab 4: High CPU Hang - Review</title><link>http://blogs.msdn.com/b/tess/archive/2008/02/27/net-debugging-demos-lab-4-high-cpu-hang-review.aspx#8884460</link><pubDate>Thu, 21 Aug 2008 14:05:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8884460</guid><dc:creator>zantoro</dc:creator><description>&lt;p&gt;you saved my ass!&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8884460" width="1" height="1"&gt;</description></item><item><title>re: .NET Debugging Demos Lab 4: High CPU Hang - Review</title><link>http://blogs.msdn.com/b/tess/archive/2008/02/27/net-debugging-demos-lab-4-high-cpu-hang-review.aspx#8027016</link><pubDate>Tue, 04 Mar 2008 17:01:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8027016</guid><dc:creator>Nakuldev Patel</dc:creator><description>&lt;p&gt;Thanks for sharing an amazing article.&lt;/p&gt;
&lt;p&gt;/nakul.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8027016" width="1" height="1"&gt;</description></item><item><title>re: .NET Debugging Demos Lab 4: High CPU Hang - Review</title><link>http://blogs.msdn.com/b/tess/archive/2008/02/27/net-debugging-demos-lab-4-high-cpu-hang-review.aspx#7934987</link><pubDate>Thu, 28 Feb 2008 16:46:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7934987</guid><dc:creator>charju</dc:creator><description>&lt;p&gt;I love it!!! Very cool!!!&lt;/p&gt;
&lt;p&gt;===========================================&lt;/p&gt;
&lt;p&gt;Q: What is the ratio between Gen 0, Gen 1, and Gen 2 collections? &amp;nbsp;What should it be in an optimal scenario and why? &lt;/p&gt;
&lt;p&gt;A: Gen 0 collections are basically free. Gen 1 collections (which includes Gen 0 collections) are also pretty cheap since we are still dealing with a low amount of memory that needs to be collected, relocated etc... Gen 2 collections on the other hand can get really really expensive since it deals with the whole .net GC heap. &amp;nbsp;An optimal ratio would be to see 100 Gen 0 collections, per 10 Gen 1 collections and 1 Gen 2 collection, so 100:10:1. &amp;nbsp;In my case the numbers are &lt;/p&gt;
&lt;p&gt;5853 Gen 0 Collections&lt;/p&gt;
&lt;p&gt;5830 Gen 1 Collections&lt;/p&gt;
&lt;p&gt;5430 Gen 2 Collections&lt;/p&gt;
&lt;p&gt;That means that pretty much every single collection that was done was a Gen 2 collection (since this also triggers a 1 and 0 collection) which is really bad since it means that we take no advantage of having a generational GC, we basically scavenge through all memory all the time. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7934987" width="1" height="1"&gt;</description></item><item><title>re: .NET Debugging Demos Lab 4: High CPU Hang - Review</title><link>http://blogs.msdn.com/b/tess/archive/2008/02/27/net-debugging-demos-lab-4-high-cpu-hang-review.aspx#7932213</link><pubDate>Thu, 28 Feb 2008 12:31:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7932213</guid><dc:creator>Tess1</dc:creator><description>&lt;p&gt;I gather this from the fact that the stack suggests that we are concatenating strings (i.e. potential for allocating a new string) &amp;nbsp;and it is currently doin wstrcpy(char* destination, char* source, int charCount) which takes a couple of pointers to char* so it is likely allocating a char array to copy data from source to dest... &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7932213" width="1" height="1"&gt;</description></item><item><title>re: .NET Debugging Demos Lab 4: High CPU Hang - Review</title><link>http://blogs.msdn.com/b/tess/archive/2008/02/27/net-debugging-demos-lab-4-high-cpu-hang-review.aspx#7932134</link><pubDate>Thu, 28 Feb 2008 12:26:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7932134</guid><dc:creator>baal</dc:creator><description>&lt;p&gt;can you put &amp;nbsp;some pictures of the performance counter log on the page?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7932134" width="1" height="1"&gt;</description></item><item><title>re: .NET Debugging Demos Lab 4: High CPU Hang - Review</title><link>http://blogs.msdn.com/b/tess/archive/2008/02/27/net-debugging-demos-lab-4-high-cpu-hang-review.aspx#7932053</link><pubDate>Thu, 28 Feb 2008 12:20:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7932053</guid><dc:creator>baal</dc:creator><description>&lt;p&gt;we got GCHeap::GarbageCollectGeneration in native stacks&lt;/p&gt;
&lt;p&gt;Q: What type of object was it allocating?&lt;/p&gt;
&lt;p&gt;A: Based on the managed stack it looks like it could be either a char[] or a string &amp;nbsp;----how do you get this answer？&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7932053" width="1" height="1"&gt;</description></item><item><title>.NET Debugging Demos</title><link>http://blogs.msdn.com/b/tess/archive/2008/02/27/net-debugging-demos-lab-4-high-cpu-hang-review.aspx#7917304</link><pubDate>Wed, 27 Feb 2008 14:47:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7917304</guid><dc:creator>Paul Mooney </dc:creator><description>&lt;p&gt;Lab 1: HangLab 2: CrashLab 3: MemoryLab 4: High CPU Hang&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7917304" width="1" height="1"&gt;</description></item></channel></rss>