Application Pools not starting after iisreset

后端 未结 5 1143
孤城傲影
孤城傲影 2021-02-08 13:06

Before I start, I know using iisreset is considered bad practice, but this shouldn\'t happen anyway..

What we have:

  • Several ma

5条回答
  •  借酒劲吻你
    2021-02-08 13:49

    Reason:

    IIS does not immediately start ASP.NET worker processes (w3wp.exe) until the first request comes in. When it says "not started" it mean you attempt to access some WCF web services (after iisreset) failed due to object was holding some space in memory, and you get a Service Unavailable error because the appPool cannot be started.

    Workaround:

    Create Batch file with following commands & schedule it.

    net stop 23svc

    net stop msftpsvc

    net stop smtpsvc

    net stop PleskControlPanel

    net stop HTTPFilter

    iisreset /restart

    net start w3svc

    net start msftpsvc

    net start smtpsvc

    net start PleskControlPanel

    net Start HTTPFilter

提交回复
热议问题