user186585
user186585

Reputation: 512

iis site use 100% cpu

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

Answers (3)

JimmyV
JimmyV

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

Carlos Aguilar Mares
Carlos Aguilar Mares

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

Anže Vodovnik
Anže Vodovnik

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

Related Questions