Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IIS7 C# ASP.NET Web-Development , +
I have an intranet website running on IIS 7. When I try to
load my site, it reacts differently every time. Here are the following
different scenarios that occur when I try to load my site:

 
•The site loads right away and is working properly
•The site loads slowly and some my styling/images/javascript did not appear to load correctly.
•I receive a "http 503 service unavailable" error

 
we are using the latest blade servers in our
production environment and this started happening after a new website
was hosted. (all websites are hosted in this particular server is having
this problem now ) so could it possibly be due to network traffic??
could anything related to IIS cause this problem???
 
Any idea why this is happening?
Posted 28-Aug-12 20:55pm
Comments
Zoltán Zörgő at 29-Aug-12 2:04am
   
Take a look on the IIS logs related to the site and the windows logs.
@amitgajjar at 29-Aug-12 2:18am
   
this may be possible because of DNS caching. restart your internet router and then try again. it will work for sure.
deepakaitr12345 at 4-Sep-12 7:47am
   
check the following possibilities
1)Your connection checkes in reder and other dispose mathod after every transection
2)App pool is not refreshhing set the time in IIS for that.
3)IIS reset(please do not reset the iis it impact on other sites also)
4)compress the css,images and jave scripts(it will help you to load the content as early as possible)
 
Hope it will help you
 
Thanks
Rockstar_ at 30-May-13 7:50am
   
Is ur database is also on the same server?
check for any schedule is running?
otherwise reset the IIS settings...
 
https://support.gearhost.com/KB/a191/how-to-reset-iis-with-the-iis-reset-command.aspx

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

The http 503 is probably your biggest clue.
 
Service unavailable is normally thrown when the application pool is shutdown.
 
If it was networking you'd most likely get a 500 or a 504.
 
You can also quite quickly exclude networking as problem by browsing the site from the server.
 
I would check your event log. You'll most likely find a whole bunch of messages about application pool restarts and worker thread recycling.
 
This will point to a misconfiguration in your application pool.
 
If you application pool has a memory threshold for recycling adding additional applications to the same application pool will increase the memory of the worker thread and can force it recycle with nearly every request.
 
If there are a large number of worker threads recycling it can force the whole application pool to restart.
 
You can also use the developer tools in your browser to run a network trace. You'll probably notice your style, images and js is missing for the same reason. Your servers response for those resources was a http 503.
 
My advice would be to configure 1 application pool per application. Ensure you remove any forced recycles because of memory limits. Instead recycle at a 3 / 6 or 12 hour interval.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 299
1 Maciej Los 295
2 Sergey Alexandrovich Kryukov 205
3 Aajmot Sk 202
4 Sinisa Hajnal 166
0 OriginalGriff 7,760
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,785


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 6 Jun 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100