Last post Jan 31, 2008 09:30 PM by rfwilliams777
Dec 28, 2007 06:00 PM|saamisolutions|LINK
My IIS server has three web sites hosted in it, On certain occasion I have to kill the restart the session of only website with out disturbing the other websites. How do i do that?
What is the current practice is to kill the w3wp.exe from the task manager, but this kills session of all websites.
IIS version 6.0
OS: Win 2003 Release 2 sp1
Dec 28, 2007 07:01 PM|DMW|LINK
You should create a separate application pool for each web site.
This way you'll have three different w3wp.exe processes running, one per site.
You can then kill any one individual site without affecting the others.
Dec 28, 2007 08:13 PM|pbromberg|LINK
If you want to restart a single web site, modify the web.config for that site (insert a space in the Xml document, etc. and resave it.
Here is a little "restart.asp" classic asp page that will do this:
Sub Touch(FolderPath, FileName, NewDate)
Set app = Server.CreateObject("Shell.Application")
Set folder = app.NameSpace(FolderPath)
Set file = folder.ParseName(FileName)
file.ModifyDate = NewDate
set file = nothing
set folder = nothing
set app = nothing
Call Touch(Server.MapPath("/"), "web.config", now)
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
Dec 31, 2007 04:46 PM|Enterhost-Dustin|LINK
You might try out IIS Guard. We have had good luck with it monitoring process that get out of control and killing them. If you have isolated the problem to a particular site, separate application pools is the way to go. You can then recycle the single
application pool without bothering the rest of the sites.
Jan 31, 2008 09:30 PM|rfwilliams777|LINK
Go to the command prompt and do iisreset. You could simply also click on the particular website and hit the stop button and start button. However, sometimes the W3WP doesn't entirely restart doing the latter, which means more and more process and memory
is being used. The former should take only a very few seconds.