<?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: If your application is in production… then why is debug=true</title><link>http://blogs.msdn.com/b/tess/archive/2006/04/13/asp-net-memory-if-your-application-is-in-production-then-why-is-debug-true.aspx</link><description>Statement 
 
 “Ensure that the debug="false" on the &amp;lt;compilation&amp;gt; element in the web.config file of each and every ASP.NET application on the server. The default during development is "true" and it is a common mistake to allow this development</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: If your application is in production… then why is debug=true</title><link>http://blogs.msdn.com/b/tess/archive/2006/04/13/asp-net-memory-if-your-application-is-in-production-then-why-is-debug-true.aspx#10327168</link><pubDate>Thu, 05 Jul 2012 15:00:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10327168</guid><dc:creator>NJ</dc:creator><description>&lt;p&gt;Hi Tess, &lt;/p&gt;
&lt;p&gt;This article is a great read. We have a web application project and use custom http handlers. It has a File import feature to import data from various sources. My question is does this affect custom http handlers? Are the custom http handlers compiled at runtime?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10327168" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory: If your application is in production… then why is debug=true</title><link>http://blogs.msdn.com/b/tess/archive/2006/04/13/asp-net-memory-if-your-application-is-in-production-then-why-is-debug-true.aspx#10297331</link><pubDate>Tue, 24 Apr 2012 20:17:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10297331</guid><dc:creator>Syed</dc:creator><description>&lt;p&gt;Hi Tess,&lt;/p&gt;
&lt;p&gt;Our application uses one dll called ISDBLayer.dll. This is one of the class library projects in a DLL Solution. When I compile it the solution in Debug mode, and deploy it to production its size is abot 48 kb and the app works fine. Whereas, when I compile it in Release mode (where the size becomes 44 kb), and then deploy it to prod, the application gives an error. This is baffling to me. Any ideas why would such a thing happen just because of a change in the debug/release option.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Syed.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10297331" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory: If your application is in production… then why is debug=true</title><link>http://blogs.msdn.com/b/tess/archive/2006/04/13/asp-net-memory-if-your-application-is-in-production-then-why-is-debug-true.aspx#10162839</link><pubDate>Tue, 10 May 2011 08:16:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10162839</guid><dc:creator>Chien</dc:creator><description>&lt;p&gt;how do i run a a nifty command in sos.dll ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10162839" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory: If your application is in production… then why is debug=true</title><link>http://blogs.msdn.com/b/tess/archive/2006/04/13/asp-net-memory-if-your-application-is-in-production-then-why-is-debug-true.aspx#10120556</link><pubDate>Wed, 26 Jan 2011 16:30:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10120556</guid><dc:creator>Scott Yee</dc:creator><description>&lt;p&gt;Hi Tess,&lt;/p&gt;
&lt;p&gt;Thank you for your posts. &amp;nbsp;I would not have solved my application&amp;#39;s memory issues without this particular post and all the debugging tips throughout your blog. &amp;nbsp;I&amp;#39;ve really learned a lot! &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10120556" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory: If your application is in production… then why is debug=true</title><link>http://blogs.msdn.com/b/tess/archive/2006/04/13/asp-net-memory-if-your-application-is-in-production-then-why-is-debug-true.aspx#10058184</link><pubDate>Sun, 05 Sep 2010 00:22:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10058184</guid><dc:creator>Gabriel Lozano-Moran</dc:creator><description>&lt;p&gt;If debug=true you will NOT get time-outs no matter what the setting is for retail in machine.config. That is because the ASK.NET Deadlock detection mechanism literally looks in web.config and if denug=true it theoretically runs for an infinite amount of time so that you have more than enough time to attach a debugger.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10058184" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory: If your application is in production… then why is debug=true</title><link>http://blogs.msdn.com/b/tess/archive/2006/04/13/asp-net-memory-if-your-application-is-in-production-then-why-is-debug-true.aspx#10045892</link><pubDate>Wed, 04 Aug 2010 13:10:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10045892</guid><dc:creator>Keith</dc:creator><description>&lt;p&gt;Thanks Tess for the response....we have an issue where the machine.config has retail=true yet when debug=true is set on the web applications our performance goes out the window. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;If we set it to false (which why wouldn&amp;#39;t we on production anyway?) it goes normal. &amp;nbsp;Our issue has only really been that it slips up there in dpeloyments some times and the last time it got us we put in a critical support ticket with MS who turned around and said you have debugging enabled in production and we see in your dumps that is eating a lot of your resources.&lt;/p&gt;
&lt;p&gt;Which started the debate on retail=true and debug=true. &amp;nbsp;It seems to me there are a few gotchas still out there and possibly some further digging to what really changes when both these settings are true versus retail=true and debug=false.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10045892" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory: If your application is in production… then why is debug=true</title><link>http://blogs.msdn.com/b/tess/archive/2006/04/13/asp-net-memory-if-your-application-is-in-production-then-why-is-debug-true.aspx#10045782</link><pubDate>Wed, 04 Aug 2010 07:21:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10045782</guid><dc:creator>Tess1</dc:creator><description>&lt;p&gt;First I thought that debug=true would override this but after looking at this in more detail both in dumps and in documentation I found that retail=true disables the debug=true setting, so if retail=true then debug=true should not be in effect.&lt;/p&gt;
&lt;p&gt;Thanks,&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=10045782" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory: If your application is in production… then why is debug=true</title><link>http://blogs.msdn.com/b/tess/archive/2006/04/13/asp-net-memory-if-your-application-is-in-production-then-why-is-debug-true.aspx#10043428</link><pubDate>Wed, 28 Jul 2010 14:16:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10043428</guid><dc:creator>Keith</dc:creator><description>&lt;p&gt;We&amp;#39;ve run into this issue in our ASP.net 3.5 code where the machine.congif has the Deployment retail=true and our code managed to get updated in Prod with Debug=true in the web.config.&lt;/p&gt;
&lt;p&gt;However since the machine.config is set it should have been fine, yet it seems this is not working. &amp;nbsp;Do you know if this is something that works in 3.5? &amp;nbsp;A look at my memory dumps during an issue led me to the setting and then mass debate occured between systems, architects/devs and our team over how this could not happen..the machine.config settings are there.&lt;/p&gt;
&lt;p&gt;Any experience on this?&lt;/p&gt;
&lt;p&gt;APS.net 3.5.20729.1 (.Net 3.5 SP1) on Windows 2003 64 Bit using 64bit framework.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10043428" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory: If your application is in production… then why is debug=true</title><link>http://blogs.msdn.com/b/tess/archive/2006/04/13/asp-net-memory-if-your-application-is-in-production-then-why-is-debug-true.aspx#9945599</link><pubDate>Fri, 08 Jan 2010 08:03:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9945599</guid><dc:creator>Tess1</dc:creator><description>&lt;p&gt;Tim,&lt;/p&gt;
&lt;p&gt;Yes, it applies to web services as well. &amp;nbsp;Web services (asmx) is basically a subset of asp.net &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9945599" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET Memory: If your application is in production… then why is debug=true</title><link>http://blogs.msdn.com/b/tess/archive/2006/04/13/asp-net-memory-if-your-application-is-in-production-then-why-is-debug-true.aspx#9945594</link><pubDate>Fri, 08 Jan 2010 07:35:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9945594</guid><dc:creator>Tess1</dc:creator><description>&lt;p&gt;Hi Krister,&lt;/p&gt;
&lt;p&gt;There is really no good way to say. &amp;nbsp;Picture this... if you have 20 pages = 20 assemblies, and then your app allocates 1 GB worth of memory for various datasets etc. then the overhead for the debug data for the 20 assemblies would be negligeable. &amp;nbsp;If on the other hand you have 1000 assemblies/pages and your app is otherwise frugal with memory usage then the overhead is not so negligeable so it is really impossible to say. &amp;nbsp; Even on a specific page/assembly you can't give a percentage, and it also depends on if the page is changed during the app lifetime. &amp;nbsp; &amp;nbsp; The best thing is probably to test with debug=true or debug=false and see. &amp;nbsp;But more importantly, with debug=true you will not take advantage of timeouts or other code optimization and that is really a bigger issue than the memory usage.&lt;/p&gt;
&lt;p&gt;What type of debug info does your support team use that would not be available if you have debug=false? &amp;nbsp; debug.write output for example would still be present... &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9945594" width="1" height="1"&gt;</description></item></channel></rss>