<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>application pool &#8211; ASP.NET Hosting Reviews and Guides</title>
	<atom:link href="https://topreviewhostingasp.net/tag/application-pool/feed/" rel="self" type="application/rss+xml" />
	<link>https://topreviewhostingasp.net</link>
	<description>Help you to find best ASP.NET Core Hosting</description>
	<lastBuildDate>Fri, 10 Feb 2023 06:11:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://topreviewhostingasp.net/wp-content/uploads/2017/01/cropped-trhaico-32x32.png</url>
	<title>application pool &#8211; ASP.NET Hosting Reviews and Guides</title>
	<link>https://topreviewhostingasp.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Make Your ASP.NET Application Pool Keep Alive</title>
		<link>https://topreviewhostingasp.net/how-to-make-your-asp-net-application-pool-keep-alive/</link>
					<comments>https://topreviewhostingasp.net/how-to-make-your-asp-net-application-pool-keep-alive/#respond</comments>
		
		<dc:creator><![CDATA[Jacques Hunt]]></dc:creator>
		<pubDate>Fri, 10 Feb 2023 06:10:16 +0000</pubDate>
				<category><![CDATA[Hosting Tips]]></category>
		<category><![CDATA[application pool]]></category>
		<category><![CDATA[application pool website]]></category>
		<category><![CDATA[asp net]]></category>
		<category><![CDATA[asp net tips]]></category>
		<category><![CDATA[asp net tutorial]]></category>
		<category><![CDATA[keep alive website]]></category>
		<category><![CDATA[keep running website]]></category>
		<guid isPermaLink="false">https://topreviewhostingasp.net/?p=3423</guid>

					<description><![CDATA[Somehow what you need is to have IIS keep website alive. You need to keep your ASP.NET website and application pool always running. Regardless of application pool, website, IIS web server, or the entire server restarting. Perhaps the main reasons could be that you need to initialize some code at the global asax at application start up. To fire [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Somehow what you need is to have IIS keep website alive. You need to keep your ASP.NET website and application pool always running. Regardless of application pool, website, IIS web server, or the entire server restarting.</p>



<p>Perhaps the main reasons could be that you need to initialize some code at the global asax at application start up. To fire up some global application logic. To warm up some pages. Or have an in memory timer in the ASP.NET application memory that routinely runs a schedule. What have you.</p>



<p>And you need to keep the website alive and always running, preventing the application or website from shutting down, or to turn cold because of idling or application pool recycling.</p>



<h2 class="wp-block-heading"><strong>IIS keep website alive – Solution:</strong></h2>



<p>Since the availability of IIS Application Initialization feature, keeping ASP.NET website and app pool always running is not a complicated task.</p>



<p>You need these IIS prerequisites to keep your ASP.NET website always running:</p>



<ol>
<li><a href="https://docs.microsoft.com/en-us/iis/configuration/system.webserver/applicationinitialization/" target="_blank" rel="noreferrer noopener">Application Initialization</a> Feature</li>
<li>Website or Application Preload Enabled</li>
<li>Application Pool Start Mode: AlwaysRunning</li>
</ol>



<p>So here goes…</p>



<h3 class="wp-block-heading">Application Initialization Feature</h3>



<p>Having this feature installed, gives you the ability to make IIS automatically probe your website or web application (like a visitor hitting your page) to keep it active and warm. It can also let you serve a static page (splash page) when your website is starting up.</p>



<p>The <strong>Application Initialization</strong> Feature can be installed as part of IIS features.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img fetchpriority="high" decoding="async" width="876" height="636" class="wp-image-3424 aligncenter" src="https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-web-server-application-initialization.png" alt="" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-web-server-application-initialization.png 876w, https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-web-server-application-initialization-300x218.png 300w, https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-web-server-application-initialization-768x558.png 768w, https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-web-server-application-initialization-50x36.png 50w" sizes="(max-width: 876px) 100vw, 876px" /></figure></div>


<h3 class="wp-block-heading">Website or Application Preload Enabled</h3>



<p>With <strong>Preload Enabled</strong> option set to true, IIS will simulate a request to ping your website or application as soon as a worker process (w3wp.exe) for your website or application is started. This will warm up your website or application. This dummy request hit will however not be logged in the IIS Log.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="438" height="544" class="wp-image-3425 aligncenter" src="https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-advanced-settings-preload-enabled.png" alt="" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-advanced-settings-preload-enabled.png 438w, https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-advanced-settings-preload-enabled-242x300.png 242w, https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-advanced-settings-preload-enabled-40x50.png 40w" sizes="(max-width: 438px) 100vw, 438px" /></figure></div>


<h3 class="wp-block-heading">Application Pool Start Mode: AlwaysRunning</h3>



<p>Making <strong>Start Mode</strong> option AlwaysRunning will make IIS spawn a new worker process (w3wp.exe) for your website or application whenever IIS is started. Or when your application pool idle time-out and shut down occurs. Or when your application pool is recycled.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="437" height="546" class="wp-image-3426 aligncenter" src="https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-pool-advanced-settings-start-mode-alwaysrunning.png" alt="" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-pool-advanced-settings-start-mode-alwaysrunning.png 437w, https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-pool-advanced-settings-start-mode-alwaysrunning-240x300.png 240w, https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-pool-advanced-settings-start-mode-alwaysrunning-40x50.png 40w" sizes="(max-width: 437px) 100vw, 437px" /></figure></div>


<p>With these main ingredients mentioned in place, your website is set to keep running and warm even without real visitors hitting.</p>



<h3 class="wp-block-heading">Other considerations to keep your website or application run properly while always running</h3>



<ol type="a">
<li>Application Pool Idle Time-out</li>
<li>Application Pool Recycling</li>
</ol>



<p>While achieving a constantly warm and running website or application, it does not mean that there is nothing to worry. These two options, the Idle Time-out and Recycling may cause you problems if you do not understand how it works.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="422" height="129" class="wp-image-3427 aligncenter" src="https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-pool-advanced-settings-idle-time-out.png" alt="" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-pool-advanced-settings-idle-time-out.png 422w, https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-pool-advanced-settings-idle-time-out-300x92.png 300w, https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-pool-advanced-settings-idle-time-out-50x15.png 50w" sizes="(max-width: 422px) 100vw, 422px" /></figure></div>


<p>In consideration, you can set the Idle Time-out to 0 to disable time-out. This may sound like a logical idea to not end your application pool process since you want it always running. But if your website or application has memory leak issues, you will be in for a surprise when your memory max out due to this.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="675" height="514" class="wp-image-3429 aligncenter" src="https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-pool-recycling-settings.png" alt="" srcset="https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-pool-recycling-settings.png 675w, https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-pool-recycling-settings-300x228.png 300w, https://topreviewhostingasp.net/wp-content/uploads/2023/02/iis-website-application-pool-recycling-settings-50x38.png 50w" sizes="(max-width: 675px) 100vw, 675px" /></figure></div>


<p>In consideration, you can disable all recycling options here. This may also sound like you have finally found a total solution to a completely uninterruptible website or application. But memory leak is also a beast here. If your website or application memory is not well programmed or managed.</p>



<p>Hence for memory leak control, it might actually be a good idea to use these features to regularly recycle the application pool to release memory resources. However again, your codes must properly anticipate and handle these recycling interruptions. To reinitialize upon start up or save state during shut down at recycling time.</p>



<p>With all these information, you should be able to maintain a properly managed always running website or application that suits your needs.</p>



<p>Happy coding!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://topreviewhostingasp.net/how-to-make-your-asp-net-application-pool-keep-alive/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
