Multiple Instances of w3wp.exe

w0051977 picture w0051977 · May 2, 2012 · Viewed 11.4k times · Source

I don't understand why there are two ASP.NET w3wp processes in Task Manager when I only have one website and one application pool. Why are there two processes running? I have Googled this and looked on MSDN but cannot find an answer.

I am trying to debug a memory leak in an application. I understand the concept of threading and multiple threads living in a process, but I do not understand why there are multiple processes.

I am specifically asking what scenarios can cause more than one process to run.

Answer

Joel Coehoorn picture Joel Coehoorn · May 2, 2012

Look at the Advanced Settings of your application pool for this section, and make sure the indicated value is set to 1:

IIS Maximum Worker Processes