Jump to content

Some Images Have A "503 Service Unavailable" Error But When I Refresh Another One Has It...


Recommended Posts

Posted

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.

Posted

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.

Posted

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?

Posted

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.

Posted

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...

  • Like 1
Posted

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.

Posted

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.

Posted

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.

Posted

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. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...