serilog-web / classic

Serilog web request logging and enrichment for classic ASP.NET applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IIS Web application hang up after multiple requests stuck on "Begin request"

jonataspc opened this issue · comments

We had a problematic scenario today which a .NET Framework 4.8 ASP.NET application hung up after queuing multiple requests stuck on "Begin request" state, on the __DynamicModule_SerilogWeb.Classic.ApplicationLifecycleModule module.

That same web application runs simultaneously on another 4 servers (webfarm), and we haven't had any issues on those at that moment. And just to be specific, the problem happened hours after the application startup.
We also noted that CPU usage went down when the requests started to queue.

image

After a while:
image

I have looked on the source code and the OnBeginRequest is where a simple stopwatch is added to the application context.
Is there a chance of concurrency on that part that might cause this behavior?

Really sorry, but I have no clue 😭