ANSWER: POP QUIZ: What are Free Threads in the Threadpool

So I was hoping to get some more comments to this before posting the answer but I guess that isn’t going to happen.

The minFreeThreads and minLocalRequestFreeThreads are very important settings when it comes to how much load your webserver can handle.  So the whole situation is this. 

You can get a good overview of the settings from my post, Hangs and how to solve them - part 2 – Queuing.  In there I give the recommended values in the “How to fix queuing” section.

There is a great write up on this here.  But to summarize, these control the amount of threads that are available to do work other then aspx requests.  So callbacks, timers, web service calls.  They all run on the threads “reserved” by this setting.  So if you have maxWorkerThreads set to 100 on a single processor machine and minFreeThreads set to 88, that means 12 threads can run aspx requests at the same time and 88 threads are available for web service calls, timers, etc.  That last link also has the perfmon counters to monitor to make sure things are running smoothly.

Now for the extra credit, one time you would want to change these is if you make more then one web service call on each aspx page.  That is what the settings are geared towards.  So if you did, you may want to make more threads available for the web services to run on so that wasn’t causing you a bottleneck.

Published 22 July 08 04:22 by Tom

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# a-foton » ANSWER: POP QUIZ: What are Free Threads in the Threadpool said on July 22, 2008 4:36 PM:

PingBack from http://blog.a-foton.ru/2008/07/answer-pop-quiz-what-are-free-threads-in-the-threadpool/

# Mandi said on July 23, 2008 10:53 AM:

Makes perfect sense, thank you!

# Dave Black said on July 23, 2008 2:54 PM:

Thanks for the answers!  

I would assume that using AJAX & WebServices (Page Methods) would also be affected by your answer to the extra credit question?

# Tom said on July 23, 2008 3:08 PM:

Dave,

Correct, those will also use those threads in question.

# Richard said on July 28, 2008 11:03 AM:

From the doc you listed, the recommened value for minFreeThreads is 88 * #CPU. I'm curious why there's so much discrepancy between default value 8 with recommened value?

# Tom said on July 29, 2008 11:10 PM:

Richard,

Great question.  The original settings (default value in 1.x) were for a development machine.  The assumption was that they would be adjusted for production.

# Yong Hee Park's Blog said on December 11, 2008 1:17 AM:

최근 진행된 SCOM/SSRS 관련 Troubleshooting에서 처음으로 64bit Windows 2008에서 작동 중인 IIS 프로세스 디버깅을 시도해었습니다. 물론 Managed

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

Search

This Blog

Syndication

Page view tracker