比IISReset命令的更文明的选择- IISApp.vbs

I know that bouncing IIS is something that Web Administrators in the past did a lot especially when rolling out new projects to release the memory and release/refresh the cache.  Worker process cycling schedules have reduced some of this, but there are still some cases where when you've rolled out a new project, feature, solution, etc... where you need to do this.

 

I'm sitting in Ted Pattison's WSS401 class and he has this line in his app and it reminded me there are simplier more civilized ways of doing things.

 

From the command line

      cscript c:\windows\system32\iisapp.vbs /a "%SharePointAppPool%" /r

 

Where %SharePointDefaultAppPool% is the app pool you are wanting to cycle.

Rather than doing a brute force IISReset which will cycle and effectively kill all app pools and cycle the process, this is iisapp.vbs is a civilized way of cycling the single app pool we are trying to cycle.

 

IISReset is 7 seconds on average and our civilized cycling for this single web app is 2 seconds.  It adds up, but it also leaves the other web apps alone.  I've been on some boxes where it was 30 seconds plus to cycle through, so you can see the value.... especially in a hosting situation where one need not be impacted by another.

<update 7/22/07>

 

来源:

IISReset is bruteforce, there are civilized alternatives (IISApp.vbs)

http://blogs.msdn.com/joelo/archive/2007/07/16/iisreset-is-bruteforce-there-are-civilized-alternatives-iisapp-vbs.aspx

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值