we have a asp.net MVC application deployed to a server, and but when there is too many request to the server, the client will just get a "503 service unavailable" error.
But if I deployed the application to another server ( lower hardware configuration ), everything worked fine, even more requests it can handle well.
My question is what possible configuration can cause the previous server to just throw out a 503 error ? (which means the requests didn't reach our application).

- 7,322
- 23
- 90
- 133
-
2In fact there are [many possible reasons](http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/iis/55f71614-ef1b-4015-b9c8-a42c1e700c25.mspx?mfr=true). – Darin Dimitrov Nov 11 '10 at 05:17
-
15Closed? Is it not useful to know what some or all of the many answers are? Stack Overflow is strange. Must not provide all types on information, JUST ONE SPECIFIC TYPE! ;) – Ian Grainger Jul 03 '14 at 08:11
-
1Such strange activities of Stack overflow is behind the scene of us. Anyway, it is my favorite site for the genius programmer in this site. – Abdus Sattar Bhuiyan Oct 01 '14 at 05:09
4 Answers
Your web pages are served by an application pool. If you disable/stop the application pool, and anyone tries to browse the application, you will get a Service Unavailable. It can happen due to multiple reasons...
Your application may have crashed [check the event viewer and see if you can find event logs in your Application/System log]
Your application may be crashing very frequently. If an app pool crashes for 5 times in 5 minutes [check your application pool settings for rapid fail], your application pool is disabled by IIS and you will end up getting this message.
In either case, the issue is that your worker process is failing and you should troubleshoot it from crash perspective.
What is a Crash (technically)... in ASP.NET and what to do if it happens?

- 76,741
- 107
- 159
- 260

- 4,941
- 3
- 35
- 58
-
Yes. Please also check if the Identity being used by the application pool still works. – Kevin .NET Dec 20 '18 at 19:55
If the server doesn't have enough memory also will cause this problem. This is my personal experience with Godaddy VPS.

- 314
- 3
- 5
We recently encountered this error, root cause turned out to be an expired SSL cert on the IIS server. The Load Balancer (infront of our web tier) found the SSL expired, and instead of handling the HTTP traffic over to one of the IIS servers, started showing this error. So basically IIS unable to server requests, for a totally different reason :)

- 41
- 1
Primarily what that means is that there are too many concurrent requests and further that they exceed the default 1000 queued requests. That is there are 1000 or more queued requests to your website.
This could happen (assuming there are no faults in your app) if there are long running tasks and as a result the Request queue is backed up.
Depending on how the application pool has been set up you may see this kind of thing. Typically, the app pool's Process Model has an item called Maximum Worker Processes. By default this is 1. If you set it to more than 1 (typically up to a max of the number of cores on the hardware) you may not see this happen.
Just to note that unless the site is extremely busy you should not see this. If you do, it's really pointing to long running tasks

- 9,599
- 2
- 36
- 38
-
2Sorry Shiv. This is not correct. http://support.microsoft.com/kb/943891 – Rahul Soni Nov 11 '10 at 03:37
-
5What you are saying will lead to Server Too Busy error. The question is Service Unavailable. These two issues are totally different. Check my answer. – Rahul Soni Nov 11 '10 at 03:39
-
@MemoryLeak, you'll need to look at your application pool and the settings and compare them across the two servers. Also look for any conflicts with regards to the .NET version the app pool has been configured for and make sure that is the version your app requires. Alos look for other applications that share the same app pool. – Shiv Kumar Nov 11 '10 at 03:43
-
Too many requests could probably also cause your app to crash and as a result your get the 503 error. You may also want to check your Event logs to see if you can see in clue in there. Most likely some unhanded exception that causes this? – Shiv Kumar Nov 11 '10 at 03:46
-
2No problem at all, Shiv. Just wanted to reaffirm that although high number may end up in issues... the root cause would always be a crash [or the service being unavailable due to the App Pool getting disabled - 503]. You can reproduce this error very easily. – Rahul Soni Nov 11 '10 at 04:11
-
2
-
In my case just restarted it worked fine. Reference Link : https://blog.hubspot.com/marketing/http-503-server-unavailable – Kodali444 Feb 15 '22 at 08:06