How to Find App Pool Recycles in Event Log

前端 未结 4 1655
渐次进展
渐次进展 2021-01-30 16:05

I have configured an app pool in IIS 7.5 to recycle when the memory usage goes above a certain level. I have also configured it to log this information.

Where in the eve

4条回答
  •  不要未来只要你来
    2021-01-30 16:19

    As it seems impossible to filter the XPath message data (it isn't in the XML to filter), you can also use powershell to search:

    Get-WinEvent -LogName System | Where-Object {$_.Message -like "*recycle*"}
    

    From this, I can see that the event Id for recycling seems to be 5074, so you can filter on this as well. I hope this helps someone as this information seemed to take a lot longer than expected to work out.

    This along with @BlackHawkDesign comment should help you find what you need.

    I had the same issue. Maybe interesting to mention is that you have to configure in which cases the app pool recycle event is logged. By default it's in a couple of cases, not all of them. You can do that in IIS > app pools > select the app pool > advanced settings > expand generate recycle event log entry – BlackHawkDesign Jan 14 '15 at 10:00

提交回复
热议问题