Thanks for reaching here!
If I have understood right it seems like the continuous CPU usage issue in your Azure web app is related to the "vizplugins" function.
- "vizplugins" is not a standard Python function, so it's possible that it's a custom function that's been added to your application.
- AFAIK "vizplugins" is a function that's used to visualize data or to generate graphs or charts.
- To prevent this function from using excessive CPU resources, you could try optimizing the code or reducing the complexity of the visualization process. This might involve reducing the number of data points being visualized, using more efficient algorithms, or caching the results to reduce the number of calculations required.
- As you mentioned that the issue did not exist previously so it might be helpful to review any recent changes to the code or to the Azure environment to determine if there are any potential causes for this issue.
- See this document might help: https://github.com/microsoft/ptvsd
Further looking at your app, there is too many actively running containers (>=10) detected leading to high CPU usage.
You may want to know that the App Service Linux and Web App for Containers uses Docker. The App Service and underlying features each run within their own containers.
Below is additional information regarding this topic.
- Each App will have a corresponding Kudu site which is used for deployment and troubleshooting.
- If CORS or Authentication features are used by the App, another middleware container will be added to support the feature.
- If Managed Identities is used, a separate container will be added.
- So for each App running on an App Service Plan, it could be possible for up to four (4) containers to be running depending on the features which are enabled.
- As your current ASP is LinuxFree , Would recommend you to split up your apps and move them to another App Service plan or scale up App Service plan.
To move an app to another App Service plan, follow these steps.
- In the Azure portal, search for and select App services and select the app that you want to move.
- From the left menu, select Change App Service plan.
- In the App Service plan dropdown, select an existing plan to move the app to. The dropdown shows only plans that are in the same resource group and geographical region as the current App Service plan. If no such plan exists, it lets you create a plan by default. You can also create a new plan manually by selecting Create new.
- If you create a plan, you can select the pricing tier of the new plan. In Pricing Tier, select the existing tier to change it.
- If you're moving an app from a higher-tiered plan to a lower-tiered plan, such as from D1 to F1, the app may lose certain capabilities in the target plan.
- When finished, select OK.
Reference: Manage App Service plan ; App Service Plan overview
Hope this helps, Let us know.