ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Troubleshooting Site Performance Issues

April 28, 2011 4:49pm

Subscribe [16]
  • #16 / May 04, 2011 3:18pm

    lehrerfreund

    263 posts

    I think using Google PageSpeed and Yahoo’s YSlow should give you further information:
    http://code.google.com/intl/de-DE/speed/page-speed/
    https://addons.mozilla.org/de/firefox/addon/yslow/

  • #17 / May 04, 2011 6:26pm

    handyman

    509 posts

      If you’re to a point that you have a cluster of 4-5 web servers, with quad core CPUs and 8 gigs of ram, offloading to a CDN, what happens when your traffic spikes next?  Toss more gear at it?

    -greg

    Since I assume we are in the top 10 or 20 EE powered sites (at least the known ones), the percentage of sites which would hit this wall would be so low as not to concern any average developer…......which is where my practicality comes in!

    The new server is nowhere near top of the line - hardly even mid-line, and yet could handle (IMHO) over a million visitors per month of normal use.

    The very few who would have more traffic than that have a lot of headroom in terms of faster single servers…then perhaps dual servers (mysql and other)......and then, it would seem, we are to the amount of sites that you could count on your fingers (in terms of actual real world EE sites).....

    It seems to me the bigger problem with EE performance is the vast number of people who host them on very low cost programs…using 1/200 of a server.

    Hop Studios published a “guess” list of the largest EE sites…which is obviously not accurate….
    http://www.hopstudios.com/blog/the_largest_expressionengine_sites/
    We’re not listed, but have more traffic than most and them - would fall in the top 10 there.

    Maybe that list needs officially refuted….if we want to add some additional validity to the idea that a single server cannot handle 99% plus of EE sites…...??

  • #18 / May 17, 2011 10:46am

    o_cee

    16 posts

    Why aren’t anyone talking about caching? That is, for me, one of the most crucial parts for getting a snappy site. I did some benchmarking and got a 90x increase in possible pages/second:  http://ellislab.com/forums/viewthread/186140/

    Without running every request through PHP, it feels very fast, and our mediocre VPS server have no problems at all.

  • #19 / May 17, 2011 11:27am

    handyman

    509 posts

    Why aren’t anyone talking about caching? That is, for me, one of the most crucial parts for getting a snappy site. I did some benchmarking and got a 90x increase in possible pages/second:  http://ellislab.com/forums/viewthread/186140/

    Without running every request through PHP, it feels very fast, and our mediocre VPS server have no problems at all.

    I think most apache and ‘nix setups automatically cache php and even mysql (has built in cache) ...at least that is what my admin told me!  This requires a decent amount of RAM, but memory is cheap these days.

  • #20 / May 17, 2011 12:03pm

    o_cee

    16 posts

    I think most apache and ‘nix setups automatically cache php and even mysql (has built in cache) ...at least that is what my admin told me!  This requires a decent amount of RAM, but memory is cheap these days.

    MySQL, yes, to some degree. But that still means that the request needs to go through PHP and then to MySQL..

    What I’m talking about is full page caching, meaning that you webserver will have the page ready without even invoking PHP. This is the only way to get a truly fast site, and I highly doubt that Apache gives you anything like that automatically (only used NGinx and Lighttpd).

    Has there been any tests to use Memcached for EE cache storage instead of files? Would help clustering at least..

  • #21 / May 17, 2011 12:52pm

    handyman

    509 posts

    Since most of my use if forums which are updated every few seconds, the cache thing does not really work too well - that is, the full page cache. But the server still caches mysql stuff and a lot of other stuff (maybe js files, images, etc.) through mysql and apache.

    As to memcache, my ISP had asked me about that and I posted a note to the EL staff…they said EE was not compatible…...for whatever reason(s).

    Some add-ons use full page caching as you mention - solspace, for instance:
    http://www.solspace.com/software/tag/caching

    I think this works great for stuff that does not change too often - but with true dynamic serving, such as a forum with entries every few seconds, much of this does not apply. Solspace said none of their products, for instance, would work with the forum.

    It’s a funny thing - static was the name of the game on the web from day one….and now, finally, when we get around to having lots of dynamic info, people want to go back to static! I agree it’s a good thing for static content…....but much on the web is not static.

  • #22 / May 17, 2011 6:18pm

    o_cee

    16 posts

    I don’t really consider EE to be a forum.. Sure, it has a forum component which I tried, but settled for another solution. Of course a forum is hard to cache, but that has nothing to do with EE..

    Doing very aggressive full page caching for a “normal” site is not that hard. We are using Disqus which means that comments are loaded asynchronus via JS. The dynamic parts that are left on the page (for example latest comments, latest forum posts and so on) are generated on the server every 20 seconds, stored in Memcached, then served from NGinx talking directly to Memcached to the page via Ajax. The drawback is that the caching in NGinx doesn’t “talk” to EE, so when there’s a new article the cache will remain for 10 minutes for example. Not a huge deal for our site, but making a ping between the systems wouldn’t be that hard.

    The reason people want to “go back to static” is the pure speed. Serving up 10k pages/s is not interesting for us, but the response time is something else.

  • #23 / Oct 17, 2011 10:41am

    Fred Carlsen

    42 posts

    Greg mentioned you will be creating a new section in the User guide for these kinds of tips.

    Any update on that?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases