What can be causing the images to load extremely slowly?

October 9, 2013 1.7k views
Hi, I have a site on a 1GB droplet in AMS1. Here's the site URL: http://www.theonepic.com/v/wycieczki/ It's my personal gallery, so the traffic is rather thin... or it's not there, but I'm using it as test case for the server setup to use it to demo websites we build for clients. Currently the problem I have is that the images on the page are loading extremely slowly, or not loading at all. In firebug the problem looks like this: http://i.imgur.com/Ubskkhr.png I have conservative apache setup on the machine, 128MB per PHP process (apache process actually takes up to 30mb), max servers and clients etc is set to 10. There are no errors in the logs. I ran apache through strace and it doesn't seems to locking on anything. I dropped a ticket to support but they don't know how to bite this. Any ideas? Thanks, Piotrek
2 Answers
Ok, it seems that I got to the bottom of this issue.

At some point, in my quest to optimize I set the MaxClients to 10. It seems that it's way to low, even though it worked on my previous server.

Please disregard the thread, it's solved.

When serving mostly static content, you'll get a lot better performance from Ngnix w/caching vs. Apache. If you're open to the idea, check out How To Install Wordpress, Nginx, PHP, and Varnish on Ubuntu 12.04.
by Etel Sverdlov
Varnish is an HTTP accelerator and a useful tool for speeding up a server, especially during a times when there is high traffic to a site. It works by redirecting visitors to static pages whenever possible and only drawing on the server itself if there is a need for an active process. This tutorial covers installing wordpress on a LEMP stack (with nginx instead of apache), and then installing varnish.
Have another answer? Share your knowledge.