Reputation: 512
I'm running iis7 under windows 2008 R2
The "w3wp.exe" process (the iis site) use 100%+- CPU
Is there any why I can check which part of the site cause the problem ?
Upvotes: 3
Views: 8554
Reputation: 540
This happens every time we deploy one of our web sites. We recycle the App Pool that it runs in and it fixes the processor peg. Sometimes it takes a couple of times recycling but it works.
Upvotes: 0
Reputation: 13581
In IIS 7 you can open IIS Manager and Use the Worker Processes feature, in that you will see the processes and the CPu they are consuming. If you double click the worker process that is consuming 100% cpu it will show you the list of requests that are running in that precise time, including how long they have been running and in which state they are. Usually that will show you the offending page.
Upvotes: 8
Reputation: 2345
You could try attaching a debugger to w3wp, and hitting the Pause button in Visual Studio. You should, in theory, land at the place that's takin the longest to complete. Other than that, you'll have to implement some tracing.
Upvotes: 0