开发者

w3wp.exe taking entire CPU

开发者 https://www.devze.com 2022-12-14 08:03 出处:网络
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开发者_C百科 the w3wp process takes 100% of CP

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开发者_C百科 the w3wp process takes 100% of CPU . Is there any solution for this ?


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


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.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消