Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check app pool last recycled

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.

like image 503
Abbas Avatar asked Dec 14 '11 20:12

Abbas


People also ask

How do I know if my app pool has been recycled?

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.

Where is application pool recycling log?

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.

How long does app pool recycle take?

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.

How often does application Pool recycle?

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.


1 Answers

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

like image 83
Jeroen Van Malderen Avatar answered Sep 19 '22 18:09

Jeroen Van Malderen