I have a IIS server running on Windows Server 2003. The server hosts multiple websites.
Occasionally the CPU load peaks in long durations of time, such that the server stops responding or responds with lag.
The problem is that we don’t know which of the multiple websites is creating the high load – I have tried looking around in Performance Monitor for counters which could be used, but I don’t see anything about CPU load for specific IIS instances.
This makes it quite hard to find the root of the problem.
For each application pool there is w3wp.exe process. So try to set each web application in a different application pool. By the way this is always a good practice.
Then run the following script.
Then you can see which web application is creating the high CPU load via the Task Manager or the Performance Monitor.