Le mie foto
Nome:
Località: Italia, Bologna, Italy

17 ottobre 2005

[Dev] Improve Iis performance

Reduce Server Too Busy errors with the httpRuntime tag.

The httpRuntime tag in ASP.NET configuration files lets you determine several features of ASP.NET at the machine or site level, including the how ASP.NET uses multi-threading.

Here's the complete syntax for this tag or here you can find the real complete reference



<httpruntime
executiontimeout="seconds"
maxrequestlength="kbytes"
minfreethreads="numberOfThreads"
minlocalrequestfreethreads="numberOfThreads"
apprequestqueuelimit="numberOfRequests"
usefullyqualifiedredirecturl="truefalse" />


minFreeThreads is the minimum number of threads that must be free for ASP.NET to accept a request. The default value is 8, so ASP.NET normally rejects a request if there are 7 or fewer free threads. This setting lets you prevent stalls when your site accepts a request that creates additional threads. On the other hand, if you know that your .aspx pages don't spawn additional threads, or spawn fewer than 7 threads, you can decrease this value and indirectly let ASP.NET server more pages at the same time. This trick can significantly improve your site's scalability.

minLocalRequestFreeThreads is like the minFreeThreads attribute, but it's applied to local requests, which often issue child requests.

appRequestQueueLimit is the maximum number of requests that ASP.NET can queue for the application when there aren't enough free threads to serve it. Any request that arrives when the queue is full is rejected with a 503-Server Too Busy error. You can safely increase this number if your typical .aspx page takes a very short time to complete

0 Comments:

Posta un commento

Links to this post:

Crea un link

<< Home

Google