App Service plan defines the compute resource assigned to run your App Service. The pricing tier of your App Service plan determines the compute power and features you get, the higher the tier, the more features and compute power are available. To find out which features are supported in each pricing tier, see App Service plan details.
When you deploy multiple App Services in the same App Service plan, they all share the underlying compute resources. If your App Service plan has more than the recommended number of apps, the apps will compete for the same set of resources. This will cause high CPU & memory that could result in availability and performance issues.
How to verify the App Service plan density
In order to verify if your apps are possibly competing for resources, run the App Service plan Density check detector by following these steps:
1) From the Azure Portal, go to on of your Apps
2) Go to the “Diagnose and solve problems” blade
3) Then either select the ‘Risk Assessments’ category or you can search for “Best Practices for Availability & Performance” in the search bar
You will see one of the following:
1) Your plan is within the recommended value
2) Your plan is nearing exhaustion
1) Stop apps to decrease load
In the description, the detector will recommend stopping a number of apps to be within the recommended number of apps on the respective pricing tier. The number may actually be lower depending on how resource intensive the hosted applications are, however as a general guidance, you may refer to the table below.
|App Service Plan SKU||Max Apps|
|B1, S1, P1v2, I1v1||8|
|B2, S2, P2v2, I2v1||16|
|B3, S3, P3v2, I3v1||32|
Note : An active slot is also classified as an active app as it too is competing for resources on the same App Service Plan.
2) Scale up your App Service plan
If your App Service plan is on a Small/Medium tier, scaling up the plan will move the apps to a higher compute power with better CPU and memory. If you are not running on a Pv2 plan, Pv2 features Dv2-series VMs with faster processors, SSD storage, and double memory-to-core ratio compared to Standard.
3) Split Apps in multiple App Service plans
If you have other App Service plans that have been created in the same Resource Group and Region, you can move your app to one of those plans and decrease the load.
Alternatively, you can follow these steps to create an App Service plan that will be able to move your app to:
a) Create a new App Service Plan in the same resource group and location
b) Select a pricing tier that fits the performance and feature needs for your application.
c) Navigate to the application in the Azure Portal whose app service plan you want to change.
d) Select the “Change App Service Plan” tab from the left sidebar menu.
e) Choose the newly created App Service Plan (created in Step 2).
Feel free to post any questions about App Service plan density check on the MSDN Forum.