<?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>POP QUIZ: How to Troubleshoot a Hang</title><link>http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx</link><description>For this quiz.&amp;#160; Let’s say that you run a web server and your customers complain that the site is running slow.&amp;#160; What do you do to troubleshoot it? As a follow-up, if you figure out that one page is the problem, what do you do to look into what</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>ASP.NET Debugging : POP QUIZ: How to Troubleshoot a Hang</title><link>http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx#8466401</link><pubDate>Wed, 07 May 2008 21:11:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8466401</guid><dc:creator>ASP.NET Debugging : POP QUIZ: How to Troubleshoot a Hang</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx"&gt;http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: POP QUIZ: How to Troubleshoot a Hang</title><link>http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx#8467993</link><pubDate>Thu, 08 May 2008 03:22:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8467993</guid><dc:creator>David Ayiku</dc:creator><description>&lt;p&gt;I would suggest an admin first look at the server processes to make sure there are no applications hanging on the server. A second option would be to update the statistics/Analyze the database tables in the database. A third option would be to isolate any user transactions during this slow down, gather extensive logging information and analyze it. &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dave Ayiku.&lt;/p&gt;</description></item><item><title>re: POP QUIZ: How to Troubleshoot a Hang</title><link>http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx#8468620</link><pubDate>Thu, 08 May 2008 06:39:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8468620</guid><dc:creator>Aly Boghani</dc:creator><description>&lt;p&gt;I would check following things:&lt;/p&gt;
&lt;p&gt;Database Server&lt;/p&gt;
&lt;p&gt;- Check Activity Monitor to see any thread that has been there for a while &lt;/p&gt;
&lt;p&gt;- check processes in task manager&lt;/p&gt;
&lt;p&gt;- inspect sql logs&lt;/p&gt;
&lt;p&gt;IIS&lt;/p&gt;
&lt;p&gt;- Check worker process size and optimize pool settings&lt;/p&gt;
&lt;p&gt;- IIS logs&lt;/p&gt;
&lt;p&gt;- Bandwidth test&lt;/p&gt;
&lt;p&gt;- Run trace on asp.net pages&lt;/p&gt;</description></item><item><title>re: POP QUIZ: How to Troubleshoot a Hang</title><link>http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx#8470102</link><pubDate>Thu, 08 May 2008 11:31:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8470102</guid><dc:creator>Frank</dc:creator><description>&lt;p&gt;You're funny. Test server. As if anyone has such a thing!&lt;/p&gt;
&lt;p&gt;In an ideal world, you'd compare the historical average time-taken with the current average time-taken, then select distinct urls with horrendous time-taken.&lt;/p&gt;
&lt;p&gt;Time-taken isn't logged by default, despite it being the most useful log field after http-status and cs-uri-stem!&lt;/p&gt;
&lt;p&gt;From there, you know which pages are slow. What do you do next?&lt;/p&gt;</description></item><item><title>re: POP QUIZ: How to Troubleshoot a Hang</title><link>http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx#8470529</link><pubDate>Thu, 08 May 2008 12:43:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8470529</guid><dc:creator>Ray</dc:creator><description>&lt;p&gt;You need to Check how big the page is, exp The Viewstate might make your page big..&lt;/p&gt;</description></item><item><title>re: POP QUIZ: How to Troubleshoot a Hang</title><link>http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx#8471505</link><pubDate>Thu, 08 May 2008 15:37:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8471505</guid><dc:creator>asp99</dc:creator><description>&lt;p&gt;If a specific page is a problem in that case it is likely that the resources used by that page should be verified. Also the page should be restested by the developer for figuring any ilogical recurrences and logical error if any, database responses and the like. &lt;/p&gt;</description></item><item><title>re: POP QUIZ: How to Troubleshoot a Hang</title><link>http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx#8471705</link><pubDate>Thu, 08 May 2008 16:11:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8471705</guid><dc:creator>K</dc:creator><description>&lt;p&gt;Check the Event Viewer for any errors logged.&lt;/p&gt;
&lt;p&gt;Issues might inlcude -&amp;gt;&lt;/p&gt;
&lt;p&gt;Large objects written into session, which sometimes lead to worker process unable to process requests.(and may &amp;nbsp;have to shut down and restart. )&lt;/p&gt;
&lt;p&gt;Too much ViewState to serialize and send across network.&lt;/p&gt;
&lt;p&gt;Db issues.&lt;/p&gt;</description></item><item><title>re: POP QUIZ: How to Troubleshoot a Hang</title><link>http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx#8472004</link><pubDate>Thu, 08 May 2008 17:00:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8472004</guid><dc:creator>Hetal</dc:creator><description>&lt;p&gt;Firstly, it is important to ensure that your environments across different servers are the same.&lt;/p&gt;
&lt;p&gt;For our application, we have 4 identical environments setup:&lt;/p&gt;
&lt;p&gt;1. Dev&lt;/p&gt;
&lt;p&gt;2. QA&lt;/p&gt;
&lt;p&gt;3. Stage&lt;/p&gt;
&lt;p&gt;4. Production&lt;/p&gt;
&lt;p&gt;Typically, I first try to reproduce the issue on the dev. environment. That obviously gives you more control with debugging.&lt;/p&gt;
&lt;p&gt;However, having said that, if the problem cannot be replicated on dev, we have extensive logging capabilities for our application. We use NLog for our logging purposes. &lt;/p&gt;
&lt;p&gt;Logging is configured so that for different log levels,, it would log different levels of messages into MessageLog, and ExceptionLog tables used for dev. and qa enviornments and MessageCaptureLog and ExceptionCaptureLog for staging/production environments.&lt;/p&gt;
&lt;p&gt;In general, the trace level for logging in web.config file on dev. and qa.. is configured to be only Info. This can be varied depending on the amount of information you want to capture. &lt;/p&gt;
&lt;p&gt;To troubleshoot on staging or production, we turn the tracing level higher, to all, which allows us to capture complete method trace into tracing tables. (Our design again has seperate tables for capturing messages and exceptions on stage and production. These are MessageCaptureLog and ExceptionCaptureLog) &lt;/p&gt;
&lt;p&gt;This logging mechanism is very powerful because it emulates .NET debugging. Are application has not gone live yet, but on dev. and qa. servers, it has truly helped us troubleshoot and trace some wierd behaviors.&lt;/p&gt;</description></item><item><title>re: POP QUIZ: How to Troubleshoot a Hang</title><link>http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx#8474041</link><pubDate>Thu, 08 May 2008 22:49:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8474041</guid><dc:creator>zaza</dc:creator><description>&lt;p&gt;Hi, I have some similar problems, I had to develop an ASP.NET application connecting to an Oracle database 10g and to make everything work together, but it doesn't work I have to solve several problems with the database's sessions.&lt;/p&gt;
&lt;p&gt;this is an asp.net application running under IIS, this is executed by many users through internet, the users connect to the database through the asp.net aplication and do any transaction and close the session.&lt;/p&gt;
&lt;p&gt;Anytime i see the oracle's sessions through SQL Plus, and there are many session inactive, with the process w3wp.exe and it is growing and growing&lt;/p&gt;
&lt;p&gt;What can I do to the sessions disappear from database?&lt;/p&gt;</description></item><item><title>re: POP QUIZ: How to Troubleshoot a Hang</title><link>http://blogs.msdn.com/tom/archive/2008/05/07/pop-quiz-how-to-troubleshoot-a-hang.aspx#8474189</link><pubDate>Thu, 08 May 2008 23:13:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8474189</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;Zaza,&lt;/p&gt;
&lt;p&gt;Sounds like you may want to make sure that the connection objects are getting cleaned up. &amp;nbsp;It is possible that Dispose/Close isn't getting called on them. &amp;nbsp;Eventually it should when they are finalized, but that will cause them to stick around for a long time.&lt;/p&gt;
&lt;p&gt;Take a look at &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/tom/archive/2008/04/28/asp-net-tips-looking-at-the-finalization-queue.aspx"&gt;http://blogs.msdn.com/tom/archive/2008/04/28/asp-net-tips-looking-at-the-finalization-queue.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;for more information on how to see if these objects are in the finalization queue.&lt;/p&gt;
</description></item></channel></rss>