Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine the last time an Application Pool recycled

I'm writing a .NET service that monitors application pools. based on specific triggers I'm restarting them. However, I do not want to restart them if the trigger occurred before they were recycled for the last time. How can I know the "last recycle time" of an app pool?

like image 823
Dani Fischer Avatar asked Nov 06 '22 15:11

Dani Fischer


1 Answers

If the LogEventOnRecycle property is set, you should be able to read this information from the event log using the EventLog Class

like image 96
Romhein Avatar answered Nov 13 '22 15:11

Romhein