how to resolve high CPU usage and crash for asp.net application caused by System.Web.Handlers.TransferRequestHandler?

StackOverflow https://stackoverflow.com//questions/23046517

Question

I have an ASP.NET application deployed on a server 4 vCPU, 10GB RAM, SSD HDD. Looking up on NewRelic, I found the root cause to be:

System.Web.Handlers.TransferRequestHandler

I also, did an analysis using DebugDiag and the findings were: The Performance Analysis shows that:

The Top Threads By Avg CPU was:

Thread 3428 - Microsoft.Win32.Win32Native.ReadFile(Microsoft.Win32.SafeHandles.SafeFileHandle, Byte*, Int32, Int32 ByRef, IntPtr)

All functions in these threads (excludes boiler-plate functions)

System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus ByRef)

Microsoft.Win32.Win32Native.ReadFile(Microsoft.Win32.SafeHandles.SafeFileHandle, Byte*, Int32, Int32 ByRef, IntPtr)

All operations All functions in all operations (excludes boiler-plate functions) System.Threading.Monitor.ObjWait(Boolean, Int32, System.Object) System.Threading.WaitHandle.WaitOneNative(System.Runtime.InteropServices.SafeHandle, UInt32, Boolean, Boolean) System.Threading.Thread.SleepInternal(Int32) System.Threading.WaitHandle.WaitMultiple(System.Threading.WaitHandle[], Int32, Boolean, Boolean) System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus ByRef) Microsoft.Win32.Win32Native.ReadFile(Microsoft.Win32.SafeHandles.SafeFileHandle, Byte*, Int32, Int32 ByRef, IntPtr)

Please help and recommend steps for resolution. Thanks

Was it helpful?

Solution

Mark EnableSessionState="False" on most pages or use a custom SessionState Module.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top