How can I change the number of threads IIS uses?

John Savill

January 8, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. IIS uses multiple threads to enable efficient scaling on single andmulti-processor systems. By default 10 threads are used however this number canbe changed but before changing you need to monitor the following items usingPerformance Monitor

  • Process - Thread Count - Inetinfo

  • Thread - %Processor Time - Inetino - Thread no.

  • Thread - Context Switches/sec - Inetino - Thread no.

If the IIS threads are busy nearly all the time AND the processor(s) are atmaximum usage you need to consider distributing the load among other servers oradding more processors, increasing the number of threads will NOT help.

If the IIS threads are busy nearly all the time but the processor(s) are NOTat maximum usage increasing the number of threads may help.

To increase perform the following:

  1. Start the registry editor (regedit.exe)

  2. Move to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesInetinfoParameters

  3. From the Edit menu select New - DWORD value

  4. Enter a name of MaxPoolThreads and press Enter

  5. Double click the new value and set to between 5 and 20. Never more or less. Click OK

  6. Stop and start the IIS service 

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like