How to resolve the “Server Too Busy” error in

No.of Views13305
Bookmarked0 times
By  RRaveen   On  14 Aug 2010 00:08:41
Tag : ASP.NET , Miscellaneous
In article I will guide to resolve the “server too busy” error in This error is big headache,when you site is running long time smoothly.
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at



In article I will guide to resolve the “server too busy” error in This error is big headache one when you site is running long time smoothly. This error does occur for less no of users most properly.

Why this error is occurred?

There are few no of reasons to occur this error. By the word itself, we can under this error is occurred when server unable to handle the requests. Experts given few reasons,

1.    The database query may take long time to respond.
2.    No of free threads not enough to IIS to handle the request
3.    In your code has memory leaks
4.    In your code have infinite loops.
5.    Server does not have capabilities to handle huge no of visitors.

Resolution steps

•    If first one is reason for this error, then you may to review your query using SqlProfiler and fix the query to response quickly.
•    If your code has memory leaks or infinite loops, then you have to review your code and have to fix.
•    The second is most important on for this error. But we can fix this case easily with webconfig file.
When you are take look your web config file, there is a tag call httpRuntime like following normally.

<httpRuntime executionTimeout="3600" maxRequestLength="4096" />

 More details about httpRuntime here

To resolve this error with web config, we have to override the following attributes in config.

1.    executionTimeout
2.    maxRequestLength
3.    minFreeThreads
4.    minLocalRequestFreeThreads


Specifies the maximum number of seconds that a request is allowed to execute before being automatically shut down by ASP.NET.
This time-out applies only if the debug attribute in the compilation element is False. If the debug attribute is True, to help avoiding application shut-down while you are debugging, do not set this time-out to a large value. The default is 110 seconds.


Specifies the limit for the input stream buffering threshold, in KB. This limit can be used to prevent denial of service attacks that are caused, for example, by users posting large files to the server. The default is 4096 KB


Specifies the minimum number of free threads to allow execution of new requests. ASP.NET keeps the specified number of threads free for requests that require additional threads to complete processing. The default is 8.


Specifies the minimum number of free threads that ASP.NET keeps available to allow execution of new local requests. The specified number of threads is reserved for requests that are coming from the local host, in case some requests issue child requests to the local host during processing. This helps to prevent a possible deadlock with recursive reentry into the Web server. The default is 4.

(API definition from MSDN)

Now we have to override values for above attributes. Once override web config file will look followings,

<httpRuntime enableVersionHeader="false" executionTimeout="72000" maxRequestLength="4096" minFreeThreads="72" minLocalRequestFreeThreads="88" useFullyQualifiedRedirectUrl="false" />

 Just override your production web configuration file with above modfied file. Now see your server to able to handle more request than earlier.But your web server does not enough memory or CPU, then you have to upgrade that to support to handle to more request.


In tips I have given solutions to “server too busy” error in hope this is help to you all.

Sign Up to vote for this article
About Author
Occupation-Software Engineer
Member Type-Gold
Joined date-03 Jun 2009
- B.Sc. degree in Computer Science. - 4+ years experience in Visual and - Obsessed in OOP style design and programming. - Designing and developing Network security tools. - Designing and developing a client/server application for sharing files among users in a way other than FTP protocol. - Designing and implementing GSM gateway applications and bulk messaging. - Windows Mobile and Symbian Programming - Having knowledge with ERP solutions
Other popularSectionarticles
By:Juan RevoredoDate Of Posted:7/6/2013 1:04:55 PM
Excellent resolution
Hi, it was an excellent post, I0ve found other articles that recommends to reinstall when it's not neccesary, cause it's just a web configuration. Thanks. JK
By:AuthorDate Of Posted:4/20/2011 11:24:59 PM
Author Response
Hi, we are using same idea to response in CodeGain.Hope its much enough proof for you. thank you
By:server busyDate Of Posted:4/7/2011 1:46:06 AM
server busy
article is good but need to know is this a practicle proof
Leave a Reply
Display Name:
(not display in page for the security purphase)
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top