The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

3.8 extremely slow (37 posts)

  1. dannymh
    Posted 2 years ago #

    Ever since the upgrade to 3.8 my site has been running extremely slowly.
    Some pages take upwards of 20 seconds to load with some hitting the 50 second mark. Prior to 3.8 pages were loading in 5 seconds max.

    I added caching so the cached pages load at a reasonable speed however uncached pages are just unusable and I am losing ranking and visitors due to this.

    before going through a risky downgrade I wanted to see if anyone had any thoughts.

    What i have tried
    - Disabled all plugins
    - Changed theme to default theme
    - reset the plugins folder
    - added caching
    - disabled gravatars

    I cant for the life of me figure out what may be causing the slow down here. Any help would be appreciated. I can provide any log needed, this is a VDS so I have full access to provide what may be needed.

    Last option will be downgrading back to 2.71

    URL is http://www.silvertails.net (front page will load quickly because of caching so you will need to click through to direct articles/posts to see how slow it gets)


  2. kmessinger
    Forum Moderator
    Posted 2 years ago #

    http://www.phpcoder.org shows registration expired.

  3. dannymh
    Posted 2 years ago #


    Thats a different and older domain.

    The site is in the post above http://www.silvertails.net

  4. kmessinger
    Forum Moderator
    Posted 2 years ago #

    Sorry, that is the domain listed on your profile.

  5. dannymh
    Posted 2 years ago #

    no worries, one of many of my sites.

    Silvertails is the current one experiencing the issue

  6. kmessinger
    Forum Moderator
    Posted 2 years ago #

    WP 3.8 would not make the site slower. Try here, http://developers.google.com/speed/pagespeed/insights/ to look for reasons.

  7. dannymh
    Posted 2 years ago #

    It seems remarkably coincidental that it was fine for over a year with no changes to server software then going to 3.8 the speed immediately declines.

  8. Tara
    Volunteer Moderator
    Posted 2 years ago #

  9. esmi
    Forum Moderator
    Posted 2 years ago #

    There was nothing in WP 3.8 core that could have caused this.

  10. dannymh
    Posted 2 years ago #

    - poor theme would have meant the default theme would have resolved the issue
    - this would also have been an issue when in previous versions of wordpress
    - memory intensive plugins should have been resolved when I disabled all plugins
    - slow server would mean other parts of the site is slow, however at the same time the forums running in mybb are very quick

    I added caching both with memcache and further browser caching and have tried many of the resources listed here. i was hoping for some more direct troubleshooting with some poeple rather than just a spin off generalization.

    I have spent 2 weeks reading page after page and document after document, refining and trimming queries but still not seeing any improvent

  11. kmessinger
    Forum Moderator
    Posted 2 years ago #

  12. dannymh
    Posted 2 years ago #

    Whilst I know there "Was nothing in 3.8 that could have caused this" A quick search of the internet reveals that there are a quite a few people experiencing the same thing.

    I can pinpoint the slowdown to exactly after I upgraded to 3.8. Everything was fine before then and all other parts of my site are fine, which do not run on wordpress. so it seems there is something that could have caused this.

    Failing that there must be someone on here with a path to discovering root cause right?

    I mean, I can tail whatever logs need tailing, I can dump php or whatever we need, but I don't know that saying there was nothing in it is the best way to try to solve a problem.

    Don't get me wrong, i am not ungrateful for your assistance, it's just I'd rather tackle this head on and have tried all the standard steps

  13. esmi
    Forum Moderator
    Posted 2 years ago #

    Have you checked your site's error logs for clues?
    How much memory is allocated to PHP?
    How large is the site?
    How much traffic does it attract?

  14. dannymh
    Posted 2 years ago #

    - nothing there that would lead to slow down, a few notices but nothing that would slow things down

    - 1GB

    - 38MB database about 5000 articles

    - Traffic varies, we are pretty quiet at the moment about 91000 pageviews a day, which is about 4000 unique users

    I should add that the admin is at a crawl too


  15. dannymh
    Posted 2 years ago #

    kmessinger: no insights at the pagespeed site, its hard for me to get it to hit a non-cached page. it scores in varying scores of 70 and up

  16. dannymh
    Posted 2 years ago #

    I also cleaned up the database a little getting rid of a few of the usual overheads like autosave drafts etc and made sure I optimized it all too

  17. JeffMatson
    Posted 2 years ago #

    I'm seeing a few things here.

    First, it looks like these calls to the ads that you are serving are taking a bit. Try removing them for a moment to see if the issue still persists.

    Next, I see that it is taking quite some time for your images to be generated. From just a look outside of the site, it looks like your theme is being called, your plugin is minifying your CSS, the CSS is calling your images, then delivering all of your content. It does look like the combination of your theme, the time it takes the sever to generate the content, as well as a mass amount of images are definitely slowing down your site.

  18. dannymh
    Posted 2 years ago #

    Those calls do slow down the overall load. When I remove all of that and go back to the default theme however I see the same issue

    It works more like this

    - Click on link to article
    - Page spins on current page for a good 15 or more seconds
    - screen goes white
    - page loads slowly

    Its almost like its in the retrieval of that page, could the permalink structure somehow be causing a long running lookup?

  19. JeffMatson
    Posted 2 years ago #

    The permalinks woun't cause it as it's just a simple htaccess call.

    The ads definitely seem to the the largest contributor to the issue. When loading the site initially, I do see quite a bit of time until the page is rendered and when blocking the ads (with cache cleared of course to avoid any caching speed-ups) the page comes up for me within a second or two.

    Of course, your theme does require a bit more optimization as I see it, but the large majority of the issue is due to rendering the ads and making calls to the ad server.

  20. bob_irving
    Posted 2 years ago #

    Having the same problem. I'm running no widgets, no plugins, and the default theme. Front page takes about 60 seconds to load.

    Also, the admin site runs fine, except for theme preview, which takes about 60 seconds regardless of theme chosen to preview. So maybe something in a theme script?

    http://www.bob-irving.com is the site.


  21. Marcelo Pedra
    Posted 2 years ago #

    Hello Dan. Interesting problem, huh? I provide multisite hosting and support, so let's debug this ;)

    You said the issues started when you upgraded to 3.8, and that you are considering downgrading back to 2.7.1. Do you really jumped versions from 2.7.1 to 3.8? You, brave!

    If you were using WP during AGES, without a problem, and that was WP 2.7.x, I see two or three or six possible sources of failure :)

    Are you keeping your server system up to date? Please tell me what are you using:
    - PHP version: you should be using PHP >= 5.2.x. Recommended: 5.4.x
    - Apache version: you should be using Apache > 2.x. Recommended: 2.4.x
    - Server OS? Windows or Linux? If Linux, CentOS > 5.1. And please, be on a 64 bits OS to get the most out the memory performance. If Windows, well it should be at least Win 2000 Server with WAMP. Nope, seriously, use Linux CentOS.
    - Server memory? if you are receiving 90k visitors/day, it should be > 2GB
    - PHP memory_limit: better if >80MB. Ideally, 128 MB.

    In the other hand, if you come from WP 2.7.x, your plugins are probably old enough and are breaking havoc in site performance. Browse via FTP to your plugins folder and tell me the date of the oldest, YET ACTIVE, plugin.

    And how many active plugins are there?
    Have you been upgrading those plugins?

    In the other hand, if you own the server, you can try this: create another account, or even a subdomain for your site. Make a subfolder in its public_html folder. Save this page as HTML (or whatever you want, but plain HTML, low JS, low fat :) ) from your browser. Upload it to the folder we created. Browse to it! Is it slow? Is it fast? Tell me what you find there.

    Two plugins I can recommend to see what may be going on, assuming you can still install anything:

    WP-Memory-Usage: will tell you, in the Dashboard and in your admin footers, how many PHP memory is using every page, and how much is allocated via PHP.ini. It's a good start to see if your WP install is overloaded or your PHP badly configured.

    P3 Profiler: this one is a great plugin which will analyze and profile your public and admin pages and tell which plugin is taking so much to load. Even the theme could be the culprit if you kept the same that was in use with WP 2.7

    Well, hope to read your findings soon.

  22. Marcelo Pedra
    Posted 2 years ago #

    oh and I forgot to ask: what MySQL version are you running in the server? Ideally > 5.1

  23. Tara
    Volunteer Moderator
    Posted 2 years ago #

    did you perform incremental upgrade from 2.71 to 3.8?
    related: http://codex.wordpress.org/Upgrading_WordPress_-_Extended_Instructions

  24. dannymh
    Posted 2 years ago #

    urrghh I meant 3.7 sorry.

    The adds are a part of the overall load I will grant you that, but these calls wont prevent the actual content of the page loading. The slowness comes before the calls to these ads and persists even with the advertising (plugin) disabled and removed completely

  25. Marcelo Pedra
    Posted 2 years ago #

    ok, what about the server OS version? PHP, Apache, MySQL? everything is up to date? the server have only 1GB RAM?
    Did you enable MySQL cache in the server?
    How much is the typical load in the server?
    If your server is using cPanel, you can install Munin monitor system to graph and see what in the server is performing bad.

    Also, are you using any security plugin to detect and filter malicious login attempts? From Limit Login Attempts for basic protection to Wordfence for granular firewall, and even Better WP Security for a double check. Also, Sucuri free plugin can scan your site and tell if there is something bad running within.

  26. dannymh
    Posted 2 years ago #

    I have disabled the advertising for a while.

    I have seen no improvement on the speeds

    - Memory is 2GB
    - Frontend is using around 13MB
    - MySQL 5.1.72
    - PHP 5.4.21
    - Apache 2.4.6
    - OS is CentOS need to upgrade as I am on 5.9 but requires a reprovision of the server and don't have the time capacity to backup reprovision and reload the entire server at this stage.

    Active Plugins: 12 many of these are optimization ones I have added in the last few days to try to minify and speed things up a little

    Nothing that should be load consming there. Smush.it may be one of them, but that came in after the load issues.

    Prior to the load issues the only things I had active were
    - mybb post coupler (this creates a mybb post when a wordpress post is created)
    - External DB auth (I authenticate users by the mybb db)
    - bbpress2bbcode
    - ST HTML generator (a simple plugin that uses cURL to grab comments from mybb, this times out very quickly so should not cause an issue, I will disable it thought)
    - Advertsing generator (the way this works is that it pulls an advert from the mybb DB, and then uses readfile() to actually grab the advert

    I disabled wordfence in case this was causing the issue.
    I also disabled CSF on the server as well to see if this was slowing things down

  27. dannymh
    Posted 2 years ago #

    oh and uploading as plain HTML is fast.

    If you take a look at http://www.silvertails.net/forum I generate the HTML from the forums for the header, right hand menu and footer, then wrap my forum into it.

    I generate those via a cron task that runs once every few hours on the wordpress side, so I get the exact same content i.e. posts, adverts etc and the page loads fairly quickly

    It seems the issue my be something to do with connection to the DB somewhere. Looks like103 queries to generate the fronte page, that is excessive

  28. dannymh
    Posted 2 years ago #

    Mysteriously its started running really fast again

  29. Marcelo Pedra
    Posted 2 years ago #

    Good to know. Maybe some cached contents were slowing things down.

    You may try to replace the minify plugin with W3TC and use mysql cache, object cache, browser cache and html cache. minifying CSS+JS also may slow things down because every visitor's browser has to decode the minified contents. I personally don't like to put that pressure on the side of customers who may have an older computer.

    Also, you could benefit from migrating to MySQL 5.5 and, if not already doing it, enabling MySQL cache in the server.

    Best regards

  30. dannymh
    Posted 2 years ago #

    and bizarely the issue just returned

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.