tags:

views:

173

answers:

4

We have three websites hosted in our IIS, each one has a seperate App Pool associated with it. But I see the CPU spikes to 100 % when I request for a page the w3wp process takes 100% of CPU . Is there any solution for this ?

+1  A: 

Get a profiler, attach it to the w3wp process and figure out where the CPU is spending time. Then fix the problem.

Oded
+2  A: 

Take the memory dump and use windbg to analyze what is taking up all the cpu power. Most likely you're doing something wrong in your code that takes up all the CPU.

Hasan Khan
+2  A: 

First use iisapp.vbs from a command prompt (installed by default, it should be on the PATH), to figure out what website is causing the problem. It lists PID - AppPool Name.

Install Debugging Tools for Windows

Then using a command prompt execute adplus.vbs -p PID -hang to create a memorydump.

Check out the WinDbg Tutorial and Tess's blog to figure out how to use windbg to figure out the problem.

Sander Rijken
A: 

I think you have a crappy server CPU.

Does it only have a single logical CPU? If so, upgrade it to at least a dual core of sorts.

The new Core i7's would be a good and relatively cheap option.

leppie