asp.netiis-7.5windows-server-2008-r2cpu-usageworker-process

How to identify and prevent an IIS worker process from causing 100% CPU usage


My CPU usage is 100% most of the the time in Windows Server 2008-R2 with my own VPS, VMWare, quad core, and 4GB Ram. When I open windows Task Manager and go to the resource monitor I see that 100% usage is because of workerprocess.exe. I have 3 websites in my IIS instance.

How can I figure out which web site causes that usage?

The web site is written in ASP.NET. How can I determine what is happening on that web site and which lines of code are causing the CPU usage?

Also, one of my web sites should access administrator's desktop and read and write some files. So because of that I changed its application pool -> identity (Process Model) to local system, and I don't know if it is related with the CPU usage or not.


Solution

  • Well, this can take long time to figure out. Few points to narrow it down: