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.
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.
The event id is 5079 and can be found in the System log. You may need first to enable logging of such even for a specific Application Pool. To enable it using the IIS Manager go to: Application Pools > Select Application Pool > Advanced Settings and you should find: Generate Recycle Event Log Entry.
Microsoft IIS Server has what appears to be an odd default for the application pool recycle time. It defaults to 1740 minutes, which is exactly 29 hours.
You can specify that IIS recycle an application pool at set intervals (such as every 180 minutes), at a specific time each day, or after the application pool receives a certain number of requests.
You could easily find the latest recycle time by using this powershell snippet:
(Get-Process -Id <ProcessId>).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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With