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.

Slow performance all of a sudden - like minutes to load a page!

April 19, 2010 3:20pm

Subscribe [3]
  • #1 / Apr 19, 2010 3:20pm

    tubes1

    32 posts

    All of a sudden, one of my sites has slowed down drastically. Pages take anywhere from 10 seconds to 3 minutes to load. This is on the front end and the back end. The browser hangs and renders nothing and then finally renders everything in less than a second.

    Here is a typical page result:
    “This page was rendered in 118.6550 seconds with 34 queries.”

    I have not made any updates in weeks and this just started. It’s probably not the host (rackspace cloud) since all of my other EE sites on there are fast and static pages outside of EE load fine. All my other sites are on the same account.

    I optimized everything according to the guide at http://expressionengine.com/wiki/Optimize_EE/

    I’ve checked all my permissions on all my folders and emptied the cache folder as well.

    I’ve looked at all the other posts on slow performance and tried everything in those as well, including disabling my 4 extensions (that took about half an hour).

    I’ve ripped all my hair out.

    Any ideas on something I’m missing? I’m still running 1.6.8 and I will upgrade but that can’t be it, can it? All my sites run that version and are fine.

  • #2 / Apr 19, 2010 4:51pm

    Ingmar

    29245 posts

    Have you talked to your host? If this appeared all of a sudden and you made no significant chances to the site I would expect a server issue of sorts. Perhaps the db server needs to be kicked back in shape, so to speak?

  • #3 / Apr 19, 2010 4:57pm

    tubes1

    32 posts

    I did before I went through all these fixes and they said it wasn’t them. And because my other sites are fine I assumed it wasn’t. But who knows how many database clusters (or whatever they call them) there are. I’m going to try again. Thanks.

  • #4 / Apr 19, 2010 5:02pm

    Ingmar

    29245 posts

    Can you try to turn on template debugging? That should give us an idea where that time goes.

  • #5 / Apr 19, 2010 5:14pm

    tubes1

    32 posts

    OK, ready for this? 😉 This time it loaded pretty fast (40 seconds) by comparison!

    TEMPLATE DEBUGGING
    (0.000022) - Begin Template Processing -
    (0.001557) URI:
    (0.001583) Path.php Template: /
    (0.001607) Retrieving Template
    (0.001624) Parsing Template URI
    (0.001655) Retrieving Template from Database: /index
    (1.640584) Template Found
    (3.114905) Retrieving Template from File
    (3.123139) Template Type: webpage
    (3.123303) Parsing Site Variables
    (3.123346) Global Path.php Variables (Keys): site_id|site_label|site_short_name
    (3.123360) Global Path.php Variables (Values): 1|Northrup King Building|default_site
    (3.123473) Parse Date Format String Constants
    (3.123504) Parse Current Time Variables
    (3.123607) Parsing Segment, Embed, and Global Vars Conditionals
    (3.131272) - Beginning Tag Processing -
    (3.131307) Parsing Tags in Template
    (3.131345) Tag: {exp:weblog:entries weblog="events" disable="trackbacks" status="homepage" show_future_entries="yes" show_expired="no" orderby="date" sort="asc"}
    (3.131531) Closing Tag Found
    (3.131619) Tag: {exp:weblog:entries weblog="artists" disable="trackbacks" limit="1" orderby="random" status="featured"}
    (3.131730) Closing Tag Found
    (3.131828) Tag: {exp:weblog:entries weblog="news" disable="trackbacks" status="homepage"}
    (3.131915) Closing Tag Found
    (3.131963) Processing Tags
    (3.131993) Module Tag: Weblog/entries
    (3.132011) Module Tag: Weblog/entries
    (3.132028) Module Tag: Weblog/entries
    (3.132055) Including Files for Tag and Modules
    (3.161668) Beginning Final Tag Data Processing
    (3.161710) Calling Class/Method: Weblog/entries
    (3.162109) -> Class Called: Weblog
    (3.162186) -> Method Called: entries
    (7.689068) -> Data Returned
    (7.689384) Calling Class/Method: Weblog/entries
    (7.689647) -> Class Called: Weblog
    (7.689720) -> Method Called: entries
    (24.376892) -> Data Returned
    (24.377163) Calling Class/Method: Weblog/entries
    (24.377390) -> Class Called: Weblog
    (24.377451) -> Method Called: entries
    (29.609674) -> Data Returned
    (29.610029) - End Tag Processing -
    (29.619126) Processing Advanced Conditionals
    (29.621278) - Processing Sub Templates (Depth: 1) -
    (29.621318)    List of Embeds: embeds/head,embeds/header,embeds/navbar,embeds/footer
    (29.621384)    Processing Sub Template: embeds/head
    (29.621407)    Retrieving Template
    (29.621430)    Retrieving Template from Database: embeds/head
    (32.200258)    Template Found
    (32.202457)    Retrieving Template from File
    (32.208183)    Template Type: webpage
    (32.208327)    Parsing Site Variables
    (32.208376)    Global Path.php Variables (Keys): site_id|site_label|site_short_name
    (32.208391)    Global Path.php Variables (Values): 1|Northrup King Building|default_site
    (32.208457)    Parse Date Format String Constants
    (32.208481)    Parse Current Time Variables
    (32.208516)    Parsing Segment, Embed, and Global Vars Conditionals
    (32.208584)    - Beginning Tag Processing -
    (32.208600)    - End Tag Processing -
    (32.214812)    Processing Sub Template: embeds/header
    (32.214842)    Retrieving Template
    (32.214862)    Retrieving Template from Database: embeds/header
    (34.608312)    Template Found
    (34.611380)    Retrieving Template from File
    (34.618067)    Template Type: webpage
    (34.618190)    Parsing Site Variables
    (34.618231)    Global Path.php Variables (Keys): site_id|site_label|site_short_name
    (34.618246)    Global Path.php Variables (Values): 1|Northrup King Building|default_site
    (34.618292)    Parse Date Format String Constants
    (34.618313)    Parse Current Time Variables
    (34.618337)    Parsing Segment, Embed, and Global Vars Conditionals
    (34.618386)    - Beginning Tag Processing -
    (34.618401)    - End Tag Processing -
    (34.627873)    Processing Sub Template: embeds/navbar
    (34.627905)    Retrieving Template
    (34.627927)    Retrieving Template from Database: embeds/navbar
    (36.850430)    Template Found
    (36.852291)    Retrieving Template from File
    (36.860450)    Template Type: webpage
    (36.860744)    Parsing Site Variables
    (36.860792)    Global Path.php Variables (Keys): site_id|site_label|site_short_name
    (36.860808)    Global Path.php Variables (Values): 1|Northrup King Building|default_site
    (36.860872)    Parse Date Format String Constants
    (36.860896)    Parse Current Time Variables
    (36.860939)    Parsing Segment, Embed, and Global Vars Conditionals
    (36.861005)    - Beginning Tag Processing -
    (36.861047)    Parsing Tags in Template
    (36.861079)    Tag: {exp:search:simple_form weblog="artists news events"}
    (36.861179)    Closing Tag Found
    (36.861246)    Processing Tags
    (36.861279)    Module Tag: Search/simple_form
    (36.861295)    Including Files for Tag and Modules
    (36.867797)    Beginning Final Tag Data Processing
    (36.867847)    Calling Class/Method: Search/simple_form
    (36.868023)    -> Class Called: Search
    (36.868055)    -> Method Called: simple_form
    (36.868251)    -> Data Returned
    (36.868298)    - End Tag Processing -
    (36.879570)    Processing Sub Template: embeds/footer
    (36.879606)    Retrieving Template
    (36.879629)    Retrieving Template from Database: embeds/footer
    (39.837763)    Template Found
    (39.840244)    Retrieving Template from File
    (39.847867)    Template Type: webpage
    (39.848050)    Parsing Site Variables
    (39.848094)    Global Path.php Variables (Keys): site_id|site_label|site_short_name
    (39.848109)    Global Path.php Variables (Values): 1|Northrup King Building|default_site
    (39.848183)    Parse Date Format String Constants
    (39.848209)    Parse Current Time Variables
    (39.848244)    Parsing Segment, Embed, and Global Vars Conditionals
    (39.848325)    - Beginning Tag Processing -
    (39.848342)    - End Tag Processing -
    (39.858629) - End Template Processing -
    (39.858652) Parse Global Variables
    (41.052460) Template Parsing Finished
    Memory Usage: 8,684,544 bytes

  • #6 / Apr 19, 2010 8:04pm

    Brandon Jones

    5500 posts

    It does look like the database is the main culprit. Have you tried putting a limit parameter on your exp:weblog:entries weblog=“news” tag to see if that significantly speeds it up?

    I’d also try an optimize and repair on all of your tables, after backing them up, of course.

  • #7 / Apr 20, 2010 1:02am

    tubes1

    32 posts

    Thanks Brandon,

    I added a limit of 10 to the news but that didn’t make a difference. There are only 3 news stories anyway. I also tried optimizing and repairing but I couldn’t do a repair because the message returned was “The storage engine for the table doesn’t support repair”.

    I’m still waiting for my host to get back to me.

  • #8 / Apr 20, 2010 1:05am

    Greg Aker

    6022 posts

    tubes1,

    I’d ask the host to repair & optimize your tables (and make sure you have permission to do so).  Definitely sounds like extreme latency between the database server & the web servers, if they are separate.  If not, sounds like MySQL is not feeling well & slow!  😊

    -greg

  • #9 / Apr 20, 2010 2:30pm

    tubes1

    32 posts

    Thanks, Greg. It was them after all. So glad because I couldn’t imaging what I could have done…

    Sean,

    We apologize for the issues your site has been experiencing.  The issue was due to the resource pool for the MySQL server that your database resides on being over-utilized.  The root cause has been corrected, and you should not experience any further issues due to the identified problem. 

    Best Regards,

    Vincent Weber
    Support, The Rackspace Cloud

  • #10 / Apr 20, 2010 2:38pm

    tubes1

    32 posts

    And thank you all for your help. You guys are the best!

  • #11 / Apr 20, 2010 3:55pm

    Ingmar

    29245 posts

    I am very glad to see that this issue has been resolved 😊 Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases