Gaurav Gupta
Gaurav Gupta

Reputation: 185

IIS restart during Application Pool Recycles

We have two applications - WebAPI and WCF service. Our WebAPI is consuming WCF service.

We have two different app pools for both applications with different recycle settings:

  1. wcf application recycles every day at 1 am fixed with overlapping sessions.

  2. webapi has default recycle settings.

We are getting wierd IIS restart daily at 1 am.

No event is logged in Event Viewer.

Note: We have grafana setup to monitor server and it sends alert daily at 1 am for server down.

What could be reasons for IIS restart?

Upvotes: 9

Views: 701

Answers (3)

John Fox
John Fox

Reputation: 927

Look through the application pool settings under advanced setting and ensure Recycling > Generate Event Log Entry is set to true for all the entries. This will ensure everything related to the application pool will be logged and you will be able to see the reasons for the recycle.

Upvotes: 0

Jimenemex
Jimenemex

Reputation: 3176

It might be your application cannot refresh the app pools when you set their app pool refresh to happen at 1am.

I would look at the permissions given to the application pool. It could be the permissions aren't enough to restart it.

Other than that I would also recommend enabling Logging. You will find out your problem with Logging enabled.

Upvotes: 1

shayan DELY
shayan DELY

Reputation: 66

have you seen application pool recycle in event log? as you know when recycling happened , all session in iis will destroy and a log wrote in Windows event log. so I need to send deliberate information about what you detect in your monitoring application. this is because of it might a false positive of your monitoring application. as you mentioned it didn't logged in event log, I suspected this problem Is for that. please send practical information to solve your problem.

Upvotes: 4

Related Questions