How to check app pool last recycled

前端 未结 6 1068
轮回少年
轮回少年 2020-12-29 01:57

is it possible to check when i recycled the app pool last time, i want to check the date when my app pool was last recycled, is there anything in IIS i can get this info.

6条回答
  •  有刺的猬
    2020-12-29 02:06

    You could easily find the latest recycle time by using this powershell snippet:

    (Get-Process -Id ).StartTime
    

    Therefore find the process id of your web application in task manager.
    First add the following columns via Tools > Select columns... : select PID and Command Line.
    Look for any w3wp.exe process and find your application by examining the command-line (application pool name is part of it) and note down its PID.
    Then run the powershell script to find the latest recycle time:

    Hope this helps

提交回复
热议问题