Nathan Johnson Posted November 6, 2011 Posted November 6, 2011 This is a really strange issue. One time it is "images/icons.png" that has the error and then I reload the page and that one doesn't have the error, but "images/refresh.png" has it that time. Does anyone know what could be causing this? I looked in JS Console: It's getting on my nerves because sometimes one image wont display and then other times another image wont display. Hopefully there's a fix to it. By the way, I'm using Google Chrome. I also tried in Safari and Firefox and they both were having this issue.
Nathan Johnson Posted November 6, 2011 Author Posted November 6, 2011 What server is your site on? Sorry, forgot to put that in my post. My site is on Stevie.
Guest xaav Posted November 6, 2011 Posted November 6, 2011 Recently, there have been some abusive accounts on Stevie that have caused some recent, fairly long downtimes. In an effort to prevent this from happening again, I installed mod_vhost_limit, to limit the number of simultaneous connections to each site. I'll increase the connection limit, but I'm not going to disable it because I don't want Stevie to be having three hours of downtime every day because of some site that's hogging all the connections.
Nathan Johnson Posted November 6, 2011 Author Posted November 6, 2011 Oh ok. I'll just put the 'refresh.png' image into the 'icons.png' CSS sprite instead so it will all be one connection. Don't connections close after the image is loaded?
Guest xaav Posted November 6, 2011 Posted November 6, 2011 Okay, I've increased the limit from five to eight. If you leverage browser caching, you should be less likely to run into this limit.
Ice IT Support Posted November 6, 2011 Posted November 6, 2011 What happens when you reach the limit? I believe one of my pages loads 8 simultaneous pages, but it is only accessed approx. once per month. I'll work on putting those onto a sprite though... 1
Guest xaav Posted November 6, 2011 Posted November 6, 2011 First of all, you shouldn't reach that limit because browsers (are supposed to) only request two resources at a time. However, if you did reach that limit, your site would simply experience a "Service Temporarily Unavailable" page until the traffic subsided. I do want to point out the fact that it takes about 1/10 of a second to serve a static resource, and since browsers fetch two resources at a time, you would need (10*8)/2, or 40 clients per second to cause this error.
Nathan Johnson Posted November 6, 2011 Author Posted November 6, 2011 What happens if we use AJAX? Would that cause errors? I do want to point out the fact that it takes about 1/10 of a second to serve a static resource, and since browsers fetch two resources at a time, you would need (10*8)/2, or 40 clients per second to cause this error. Thanks for letting us know that.
Guest xaav Posted November 7, 2011 Posted November 7, 2011 What happens if we use AJAX? Would that cause errors? It shouldn't cause errors as long as there aren't 50 people spamming your site or something.
Nathan Johnson Posted November 8, 2011 Author Posted November 8, 2011 What happens if we use AJAX? Would that cause errors? It shouldn't cause errors as long as there aren't 50 people spamming your site or something. Okay, that's good. I know I wont have that much users on so I think I'm good.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now