1
votes

We have created a MVC application with WCF Service in .Net Framework 4.0. We have hosted both the application in Windows Server 2008 and IIS 7.0. My MVC Application sends requests to wcf service. Every 3 to 4 hours my application not responding. After restarting WCF in IIS it's working file.

I check the event log and found "A worker process with process id of "xxxx" serving application pool "ASP.NET v4.0" has requested a recycle because the worker process reached its allowed processing time limit."

Can any one help me in identifying of the issue to solve it.

My application pool settings are shown below

enter image description here

2
please see this answer Hopefully that will be usefulRahmat Anjirabi

2 Answers

0
votes

Your AppPool must been recycled by IIS due to the default configuration. Select the AppPool and on "Actions" panel, click "Recycling.."

You can uncheck the "Regular time intervals" to avoid this. But the default value is 1740 minutes, what means 29 hours, check the value set to your AppPool, because this not match your 3 to 4 hours problem.

Anyway, a recycle does not put application unavailable, it starts again upon new requests.

If your AppPool is not starting some error can be happening, check the event log to find out any error during the restart of AppPool.

0
votes

If you are able to upgrade to at least IIS 7.5, you could use IIS Application Initialisation. This will allow your application to recycle periodically, which is a Good Thing for its stability, without becoming periodically unavailable. That's because Application Initialisation overlaps IIS worker processes, starting up and initialising a new worker process before killing the old worker process. It magically deals with re-routing requests between the two worker processes.