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

Consider Amazon's Extra Large Windows Instance (15 gig memory, 8 EC2 Compute Units, 64-bit) running stand-alone as a web-server (only IIS with ASP.NET, no Sql Server or another app).

I am trying to figure out what is the maximum/ideal number of threads one can safely set for an IIS 7 app on such a configuration in web.config so as to allow every bit of throughput the server can generate:

<configuration>
  <system.web>
    <applicationPool 
        maxConcurrentRequestsPerCPU="5000"
        maxConcurrentThreadsPerCPU="0" 
        requestQueueLimit="5000" />
  </system.web>
</configuration>
share|improve this question
    
maxConcurrentThreadsPerCPU="0" means "unlimited". You would still be limited by the .NET CLR threadpool though. "so as to allow every bit of throughput the server can generate" is not a very precise specification. Is the application designed for multithreading? –  Mathias R. Jessen Feb 22 '12 at 19:15
    
@Mathias: those are not the values I am using, they wer just copy-pasted from some MSDN section for reference purposes. Well, being an ASP.NET application, it is inherently multi-threaded and every request can be processed independently of the other, right :) –  r_honey Feb 22 '12 at 21:20
    
No, I meant in the code, do you utilize parallel task invocation and for loops for example? –  Mathias R. Jessen Feb 22 '12 at 22:07
1  
Why touch unless you have to? This is tinkering and premature optimisation. Wait and see how your application performs under load, then if thread exhaustion is actually a problem start to optimise. –  Kev Feb 23 '12 at 1:45
    
@MathiasR.Jessen: Nopes, no asynchronous handlers are used (meaning number of requests should equal number of threads), and no Task parallel library (in fact, its .Net 3.5 based). Further no threading is handled explicitly, a request is processed in as ASP.NET page as it happens traditionally. –  r_honey Feb 23 '12 at 7:31
show 3 more comments

migrated from superuser.com Feb 22 '12 at 18:25

This question came from our site for computer enthusiasts and power users.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.