<?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>Event Handlers Gone Wild</title><link>http://blogs.msdn.com/toddca/archive/2006/09/05/event-handlers-gone-wild.aspx</link><description>Today I ran across an issue that my good buddy Tess hit with one of her customers a while back. The application in question here is an ASP.NET web application that is exhibiting fairly high memory usage after almost a day of usage (approx 400-500 MB).</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Event Handlers Gone Wild</title><link>http://blogs.msdn.com/toddca/archive/2006/09/05/event-handlers-gone-wild.aspx#743281</link><pubDate>Thu, 07 Sep 2006 00:20:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:743281</guid><dc:creator>Bill Pierce</dc:creator><description>Todd,&lt;br&gt;Thanks for the post. &amp;nbsp;Almost wandered down the path of Tess's customer. &amp;nbsp;My apps are so small I probably wouldn't have noticed. &amp;nbsp;I didn't know ASP.Net will spawn more than one HttpApplication.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;-Bill</description></item><item><title>Link Listing - September 6, 2006</title><link>http://blogs.msdn.com/toddca/archive/2006/09/05/event-handlers-gone-wild.aspx#743651</link><pubDate>Thu, 07 Sep 2006 05:36:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:743651</guid><dc:creator>Christopher Steen</dc:creator><description> More on Atlas [Via: James Avery ] Smart Client Deployment with ClickOnce - Final Manuscript Complete!...</description></item><item><title>re: Event Handlers Gone Wild</title><link>http://blogs.msdn.com/toddca/archive/2006/09/05/event-handlers-gone-wild.aspx#744502</link><pubDate>Thu, 07 Sep 2006 18:11:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:744502</guid><dc:creator>Bill Pierce</dc:creator><description>Todd,&lt;br&gt;You're post got me thinking about additional questions.&lt;br&gt;&lt;br&gt;If ASP.Net spawns a new HttpApplication, does the Application_Start event fire for the new HttpApp?&lt;br&gt;&lt;br&gt;When the load dies down and the additional HttpApplication is no longer needed, does it just get GC'd? &amp;nbsp;Does the Application_End event fire?&lt;br&gt;&lt;br&gt;Thanks for the knowledge.</description></item><item><title>re: Event Handlers Gone Wild</title><link>http://blogs.msdn.com/toddca/archive/2006/09/05/event-handlers-gone-wild.aspx#746735</link><pubDate>Fri, 08 Sep 2006 22:55:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:746735</guid><dc:creator>Toddca</dc:creator><description>Good question Bill. The Application_Start event only fires on the first instance of an HttpApplication being created and the Application_End will only fire on the destruction of the last HttpApplication instance. &lt;br&gt;&lt;br&gt;You could argue (and I would probably agree) that a better solution would have been to register for the event in the Application_Start event handler.</description></item></channel></rss>