IiS server has frequent stoppage of App Pool

Allen Francis 26 Reputation points
2026-11-11T18:41:08.44+00:00

server has frequent stoppage of App Pool. Everyday we need to restart app pool.

Please anyone facing this issue in past

Windows development | Internet Information Services
0 comments No comments

3 answers

Sort by: Most helpful
  1. Tom Tran (WICLOUD CORPORATION) 5,960 Reputation points Microsoft External Staff Moderator
    2026-11-12T02:56:54.49+00:00

    Hi @Allen Francis ,

    I would suggest taking a look at Event Viewer for any WAS-related errors around the time the application pool stops. These might give us a better idea of what's causing the issue.

    It may also be worth checking whether Rapid-Fail Protection is being triggered, as IIS can automatically disable an application pool after repeated worker-process failures. Microsoft's documentation on Rapid-Fail Protection explains this in more detail.

    Could you also let me know whether the application pool actually shows as Stopped in IIS Manager, or if the website becomes unavailable while the pool is still running?

    If you come across any relevant errors, feel free to share the event IDs and messages (with any sensitive details removed).

    If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance or provide your insights.

    Was this answer helpful?


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. AI answer

    2026-11-11T18:43:03.71+00:00

    Determine which Windows event occurs when the pool stops, then apply the matching fix instead of scheduling another daily restart.

    1. Identify the shutdown event

    Administrator access is generally required for Event Viewer, IIS configuration, and dump collection.

    1. Open Event Viewer (eventvwr).
    2. Go to Windows Logs → System and filter by source Microsoft-Windows-WAS.
    3. Record the event ID, timestamp, application-pool name, and process ID.
    4. At the same timestamp, inspect Windows Logs → Application.

    Use the resulting event as follows:

    • WAS 5011: w3wp.exe crashed or terminated unexpectedly. Continue with the crash investigation below. Event 5011 identifies when the crash happened, not its underlying cause.^1^
    • WAS 5013: the worker process exceeded its shutdown time limit. Continue with the shutdown-limit branch.
    • HTTP 503 with the pool stopped: inspect rapid-fail protection and the pool identity.

    2. If the event is WAS 5011

    In Windows Logs → Application, find an event at the same timestamp:

    • Application Error, Event ID 1000: record Faulting application, Faulting module, and Exception code.
    • .NET Runtime, Event ID 1026: record the exception and call stack.

    Common interpretations include:

    • 0xC0000005: access violation.
    • 0xe0434352: unhandled .NET exception; inspect Event 1026.
    • 0xC00000fd: stack overflow, commonly caused by recursive application code.^1^

    First check Windows Error Reporting events and their referenced directories for existing .mdmp or .hdmp files. If those already identify the failure, no additional dump is necessary.

    If the logs are inconclusive, capture the next crash:

    1. Install and open DebugDiag 2 Collection.
    2. Select Add Rule → Crash → A specific IIS web application pool.
    3. Select the affected pool.
    4. Under Advanced Settings → Breakpoints, add Ntdll!ZwTerminateProcess.
    5. Set Action Type to Full Userdump and Action Limit to 3–5.
    6. Save dumps to a non-system drive with sufficient free space.
    7. Activate the rule and wait for the failure.
    8. Open DebugDiag2 Analysis → Add Data Files, select the dump, and run the analysis.^1^

    If several applications share this pool, place each application in a separate pool. This isolates the application causing the worker-process crash and limits its impact.^1^

    3. If the pool enters rapid-fail protection

    IIS stops all applications in a pool when worker-process crashes reach the configured threshold. By default, rapid-fail protection is enabled, with 5 crashes within 5 minutes.^2^

    Check it at:

    IIS Manager → Application Pools → affected pool → Advanced Settings → Rapid-Fail Protection

    Review Enabled, Failure Interval, and Maximum Failures. Do not simply disable protection; identify the crashes through Events 5011/1000/1026 and a dump. Disabling it can leave a repeatedly failing application active.

    4. If the event is WAS 5013

    Go to:

    IIS Manager → Application Pools → affected pool → Advanced Settings → Process Model → Shutdown Time Limit

    The documented default is 90 seconds. If it was reduced, restore it to 90 seconds or increase it enough for active requests to complete. If it is already adequate, capture a w3wp.exe dump while shutdown is hanging; incomplete HTTP requests or application shutdown code may be blocking termination.^3^

    5. If the site returns 503 without crash evidence

    Check IIS Manager → Application Pools → affected pool → Advanced Settings → Identity. If it uses a custom account, an invalid username or password can stop the pool and produce Service Unavailable. Update the application-pool identity credentials and start the pool again.^4^


    References

    1. Troubleshoot a process crash in an IIS application pool
    2. Failure Settings for an Application Pool <failure>
    3. An application pool exceeds time limits during shutdown in IIS
    4. Troubleshooting Internet Information Services
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.