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.

Speed up EE - It's really slow!

December 04, 2008 10:06am

Subscribe [11]
  • #1 / Dec 04, 2008 10:06am

    tr309

    24 posts

    I’ve just completed my third Expression Engine integration and for some reason this site is running incredibly slowly. I’ve turned on template debugging:

    http://demo2.oi-digital.com/index.php/

    I’ve tried repairing and optimising my database tables but it’s still running terribly slow.

    Any ideas?

    It’s running on a Windows dedicated server with IIS 6.0.

    Thanks,

    Rich

  • #2 / Dec 04, 2008 1:38pm

    Geoff Towle

    330 posts

    tr309-

    Nice site.  Just a thought, since you didn’t mention it, have you used the disable property in your entries to eliminate any excess processing?

    Geoff

  • #3 / Dec 04, 2008 4:56pm

    Boyink!

    5011 posts

    ..and have you experimented with caching?

    Otherwise speed issues are sometimes related to how the site was constructed behind the scenes…look to reduce number of tags, embedded templates etc if possible…

  • #4 / Dec 05, 2008 4:43am

    tr309

    24 posts

    Thanks Geoff. I’ll look into the disable property. And thanks Boyink! I will have a look into caching and the other things you’ve mentioned above.

    The site existed in a static form prior to the EE integration and it ran fine then. It was hosted on another server however, so that might be a factor. I have created a number of embeds - I thought this was a good thing to do to keep things neat and tidy and easily maintainable?

    Thanks,

    Rich

  • #5 / Dec 05, 2008 5:53am

    Steve Abraham

    149 posts

    Rich,

    It’s possible as you say that it could be the server - are you on a shared server with other sites, or is it on your own dedicated server?

    The reason I ask if that if you were able to give us addresses for other websites on the same server, we could work out from that if it’s just your site or not…

    Cheers!
    Steve.

  • #6 / Dec 05, 2008 6:35am

    tr309

    24 posts

    Well the funny thing is, it is a dedicated server (Windows 2k3 with IIS6.0) and many of the PHP sites running on it seem to underperform whereas the ASP sites on the same server seem to be super-fast. I know this is coming out of the topic of ExpressionEngine but does anyone know of any reason for PHP to run slowly on IIS6.0? I have maintained a dedicated server before on the same spec and PHP sites were fine.

    Puzzled!

    Rich

  • #7 / Dec 05, 2008 6:37am

    Steve Abraham

    149 posts

    Unfortunately I have little experience of Windows servers, but I’m sure there will be knowledgeable people that could point you in the right direction.

    Good luck!
    Cheers,
    Steve.

  • #8 / Dec 05, 2008 9:37am

    Boyink!

    5011 posts

    Embeds = good.  Usually.  But like anything good they can also be overused.  I’ve logged into some EE installs that just had me shaking my head…;)

    But based on the comments so far I’d be looking at the server environments first.

  • #9 / Dec 05, 2008 10:23am

    Ingmar

    29245 posts

    I don’t do IIS, as a rule, but perhaps this PHP bug report might be useful: http://bugs.php.net/bug.php?id=28524

  • #10 / Dec 06, 2008 12:29pm

    Derek Jones

    7561 posts

    Also, you’ll want to check to make sure EE has read, write, and modify access to all the files it needs, including your cache directories.  Permissions on Windows are a little screwy, so it’s easy to have something set not quite right.  The short and easy answer though is to move to a *nix server.  It’s just not a terribly good platform for PHP/MySQL applications for a number of reasons, speed being just one.

  • #11 / Dec 06, 2008 12:58pm

    GDmac - expocom

    350 posts

    You could also move the CSS to a static file on the server, instead of dynamic as a template.
    See a screenshot of safari develop-menu and firefox-firebug network profiling. (attached)
    (these results are a bit skewed, because i’m currently working on an old G4)

  • #12 / Dec 06, 2008 1:07pm

    Derek Jones

    7561 posts

    GDmac’s point is valid, at least on a Windows server, as the headers EE uses to allow the browser to cache CSS requests will not work in that environment.  Another point against running PHP apps on IIS, you see.

  • #13 / Dec 08, 2008 11:20am

    tr309

    24 posts

    Thanks all for your help and suggestions. There are some really useful tips posted here.

    After some experimentation it looks like a PHP-running-on-Windows issue. It was necessary to go IIS/Windows because of the need for ASP.Net applications (which funnily enough run lightning fast!). I personally would have preferred a Linux-based server.

    I created a simple test.php which did nothing but

    <?php print "TEST"; ?>

    . The poor page load time was apparent on the above domain so I tried another domain/site on the server - same again. And then finally tried the same test.php file on one of my Linux servers and as expected the page finished loading before I could blink.

    Richard

  • #14 / Dec 08, 2008 11:43am

    Geoff Towle

    330 posts

    Richard-

    Thanks for reporting your findings.  Good to know.  Are you going to move the site, then?

  • #15 / Dec 08, 2008 11:56am

    grrramps

    2219 posts

    Probably not related to the slowdown in rendering and delivery (Windows) but I did find a few dozen validation errors in the HTML, and an error on font-color in the CSS.

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

ExpressionEngine News!

#eecms, #events, #releases