dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.44k stars 10.03k forks source link

ANCM (In-proc) can cause IIS worker process to become unhealthy #44211

Open HaoK opened 2 years ago

HaoK commented 2 years ago

We've seen various reports of IIS worker processes becoming unresponsive/returning 503s until things are iisreset. Out-of-Process hosting seems to fix many of these issues.

From older bugs like (https://github.com/dotnet/aspnetcore/issues/14719) it seems like background exceptions are maybe expected to cause the worker process to crash?

This issue will track investigating and resolving the root cause:

Potentially related issues:

ghost commented 2 years ago

Thanks for contacting us.

We're moving this issue to the .NET 8 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

HaoK commented 2 years ago

Looks like at least for some of the SQL related issues we were seeing, it was indeed a bug in Sql Client: https://github.com/dotnet/SqlClient/issues/1418