<?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>Mark Brown's Blog : IIS</title><link>http://blogs.msdn.com/mab/archive/tags/IIS/default.aspx</link><description>Tags: IIS</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>How to recycle a IIS6 website in Windows Server 2003 SP1</title><link>http://blogs.msdn.com/mab/archive/2009/04/20/how-to-recycle-a-iis6-website-in-windows-server-2003-sp1.aspx</link><pubDate>Mon, 20 Apr 2009 21:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9557085</guid><dc:creator>mab</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/mab/comments/9557085.aspx</comments><wfw:commentRss>http://blogs.msdn.com/mab/commentrss.aspx?PostID=9557085</wfw:commentRss><wfw:comment>http://blogs.msdn.com/mab/rsscomments.aspx?PostID=9557085</wfw:comment><description>&lt;P&gt;Many clients I have worked with simply use the IISReset.exe command to recycle applications.&amp;nbsp; Although this may have the desired affect sometimes, there are many alternatives that are better.&amp;nbsp;By no means is this an exhaustive list but will give you some options when a specific website is causing problems (i.e. hung, OOM).&amp;nbsp;&amp;nbsp; Stopping a website doesn't reset memory or the worker process it just stops the website from processing the requests.&amp;nbsp;&amp;nbsp; Therefore, the website "start/stop" actions are not listed below.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Single Web Application "resets"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Recommended:&lt;/STRONG&gt; Recycle the application pool of the specific website's application pool.&amp;nbsp; With Windows Server 2003 SP1 the command line is iisapp.vbs:&amp;nbsp; Reference: &lt;A href="http://blogs.iis.net/chrisad/archive/2006/08/30/Recycling-Application-Pools-using-WMI-in-IIS-6.0.aspx" mce_href="http://blogs.iis.net/chrisad/archive/2006/08/30/Recycling-Application-Pools-using-WMI-in-IIS-6.0.aspx"&gt;http://blogs.iis.net/chrisad/archive/2006/08/30/Recycling-Application-Pools-using-WMI-in-IIS-6.0.aspx&lt;/A&gt;.&amp;nbsp; You can use a process id /p or an application id with /a.&amp;nbsp;&lt;BR&gt;&lt;BR&gt;Examples:&lt;BR&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;D:\WINDOWS&amp;gt;&lt;STRONG&gt;iisapp /p 596 /r&amp;nbsp;&lt;BR&gt;&lt;/STRONG&gt;Microsoft (R) Windows Script Host Version 5.6&lt;BR&gt;Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.&lt;BR&gt;Application pool 'DefaultAppPool' recycled successfully.&lt;BR&gt;&lt;BR&gt;D:\WINDOWS&amp;gt;&lt;STRONG&gt;iisapp /a DefaultAppPool /r&lt;/STRONG&gt;&lt;BR&gt;Microsoft (R) Windows Script Host Version 5.6&lt;BR&gt;Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.&lt;BR&gt;Application pool 'DefaultAppPool' recycled successfully.&lt;/LI&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/OL&gt;
&lt;DIV&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Reseting &lt;EM&gt;&lt;U&gt;ALL&lt;/U&gt;&lt;/EM&gt; websites on a server&amp;nbsp;(not recommended)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Start and stop specific&amp;nbsp;services &lt;/STRONG&gt;for web services only (do not do the start commands if you are not recycling)&lt;BR&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;NET STOP W3SVC&lt;BR&gt;NET STOP HTTPFilter &lt;EM&gt;(if having problems with SSL)&lt;BR&gt;&lt;/EM&gt;NET START HTTPFilter &lt;EM&gt;(if having problems with SSL)&lt;/EM&gt;&lt;BR&gt;NET START W3SVC&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class=077585517-20042009&gt;&lt;/SPAN&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;Use &lt;STRONG&gt;IISReset /NOFORCE&lt;/STRONG&gt;&amp;nbsp;, this causes the system to not forceable terminate the internet services if timeout or error occurs.&amp;nbsp; Note: this will reset all IIS services that are enabled: FTP, NNTP, WWW, IISAdmin, etc.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;IISReset&lt;/STRONG&gt; (without /NOFORCE) causes a forceable stop if doesn't respond within 60s (the&amp;nbsp;stop default can be changed via command line).&amp;nbsp; This may lead to IIS configuration loss (&lt;A href="http://support.microsoft.com/kb/286196" mce_href="http://support.microsoft.com/kb/286196"&gt;http://support.microsoft.com/kb/286196&lt;/A&gt;). Note: this will reset all IIS services that are enabled: FTP, NNTP, WWW, IISAdmin, etc.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Reboot&lt;/STRONG&gt; the server.&amp;nbsp; Not recommended and may cause signficant data loss.&amp;nbsp; Note: this attempts to shutdown or forcably shutdown all applications on the server not just IIS related.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN class=077585517-20042009&gt;&lt;FONT face=Verdana size=2&gt;&lt;STRONG&gt;Power cycle&lt;/STRONG&gt; the server.&amp;nbsp; Not recommended and may cause signficant data loss.&amp;nbsp; Note: this is extremely dangerous and only to be used when all other options (even one's not listed above) have been tried.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;SPAN class=077585517-20042009&gt;&amp;nbsp;&lt;FONT face=Verdana&gt;Hope this helps ...&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9557085" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/mab/archive/tags/Internet+Explorer/default.aspx">Internet Explorer</category><category domain="http://blogs.msdn.com/mab/archive/tags/IIS/default.aspx">IIS</category></item></channel></rss>