Azure app service thread being killed, no evidence

Viewed 52

I have a process running within a windows based azure app service which runs the plan out of memory and I'm assuming the thread is being killed by something.

I'm trying to find evidence of this happening in some sort of logging but can't, all I can see is in the metrics high memory usage and high garbage collection:

enter image description here

Is there anywhere I should expect to find the evidence, e.g. something I could alert on. My app does have peaky memory patterns so just looking for memory usage isn't viable.

1 Answers

It is possible that high memory usage triggered an auto-heal event and Azure platform restarted the application.

To confirm this, you can go to the App Service → Diagnose and solve problems → Availability and Performance → Web App Restarted. If there was an auto-heal event, it will be shown like this:

Auto-heal event description

If this happens regularly, I would recommend to review your application memory consumption and potentially scale up the app service plan.

Related