Geeks With Blogs

Michael Freidgeim's Blog MS .Net Development

I want to log Worker Process Recycling Events in IIS 6.0 (IIS 6.0) , but ther is no UI for this.
I've created batch file and decided to post it here, because current instructions have a few typos.
You should modify value of AppPoolName as appropriate.

:rem IISLoggingWorkerProcessRecycling.bat
:rem from http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/87892589-4eda-4003-b4ac-3879eac4bf48.mspx?mfr=true
set EnableEvent=true
set AppPoolName=ASP.NET v2.0
%systemDRIVE%
cd %systemDRIVE%\inetpub\adminscripts
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleTime" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleRequests" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleSchedule" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleMemory" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleIsapiUnhealthy" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleOnDemand" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleConfigChange" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecyclePrivateMemory" %EnableEvent%

 

Posted on Friday, September 15, 2006 8:27 AM | Back to top


Comments on this post: Batch to Logging Worker Process Recycling Events in IIS 6.

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net | Join free