Thanks for asking question! If App is facing slower performance this may be due to following cause:
• network requests taking a long time
• application code or database queries being inefficient
• application using high memory/CPU
• application crashing due to an exception
Suggest you to perform these troubleshooting steps in sequential order:
1.Observe and monitor application behavior
2.Collect data
3.Mitigate the issue
As per your ask sure, you can use AutoHeal:
Auto-Heal provides you with an easy way to take an action when your app is having an unexpected behavior. The triggers allow you to define various conditions based on request count, slow requests on which you can restart the app container. Please note that these mitigations should only be considered a temporary workaround until you find the real cause for the issue causing the unexpected behavior.
For more information, check this link: https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-performance-degradation#use-autoheal
Also, check link: https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-intermittent-outbound-connection-errors
Let us know if issue remains or further query on this.