Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have created an ASP.net application which creates thread in infinite loop. And set maxWorkerThreads to 20 in processmodel in machine.config.

When i checked Thread count in perfmon there was around 7000 threads created in worker process.

Or how can we restrict thread creation in ASP.net with IIS6/7.

share|improve this question

1 Answer 1

If the app isn't using the ThreadPool, that setting won't apply. Also, I believe the app can set that value itself if it chooses -- machine.config won't override explicit programmatic parameters.

Is this an app you have source for, or a third-party app you can't get under the hood of?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.