Web page shows 503 error and application pool randomly stops

Web page shows 503 error and application pool randomly stops within a specified time period

Reference:

https://support.plesk.com/hc/en-us/articles/213917405-Website-in-Plesk-shows-error-503-its-application-pool-randomly-stops-within-a-specified-time-period-automatically-disabled-due-to-a-series-of-failures

Cause

Rapid-Fail Protection disables application pool if it crashes several times within a specified time period.

Resolution

Note: Rapid-Fail Protection prevents the failing application pool from getting into a continuous loop of crashing. This is useful when an application goes out of control which could overload the server.
In general, it is better to review the application code to resolve crashes.

To prevent an Application Pool from stopping, disable Rapid Fail Protection in IIS. Refer to these articles for more information:

General steps to disable Rapid Fail Protection for application pool are the following:

Connect to the server via RDP.

Open Internet Information Services (IIS) Manager > Application pools > choose application pool > Advanced Settings.

Scroll down to Rapid Fail Protection and change the option Enabled from True to False. Click OK to apply the changes.

Untitled.png

Note: if the application is crashing frequently, it may require reviewing the application code in order to prevent repeated crashes.

 

Another reference:https://dotblogs.com.tw/supershowwei/2015/08/25/153213