Scheduled server maintenance complete

christmas-logo-dp-600px

Our current server has been up non-stop for exactly a year. Over the last few weeks we had some slow loads and site errors, especially in blog comments. We did some scheduled maintenance a few hours ago, and the site was offline for a few minutes here and there.

The WordPress backend is up to full speed again. Comments seem to be faster, but we’re still not satisfied. We’re going to disable the Akismet spam filter and try some alternatives.

Today’s updates:

  • System is updated from Debian 6.0.3 to latest stable release 6.0.6 and rebooted
  • New version of eaccelerator is compiled for updated PHP 5.3.3-7+squeeze14
  • Changed value ;suhosin.get.max_value_length = 1024 under /etc/php5/conf.d/suhosin.ini to solve errors related to piwik (traffic statistics software)

Please let us know how it’s working for you!

40 comments on this post.
  1. Sjaak:

    comments are working :)

  2. alexlwa:

    test1

  3. alexlwa:

    test2

  4. Mats Engstrom (@matseng):

    Test to see if comments are faster now….

  5. Mats Engstrom (@matseng):

    Well…. Faster then before where I got a timeout 90% of the time, but it still takes a good 20 seconds to post a comment,

  6. Filip:

    Timed test

  7. alexlwa:

    test3

  8. Filip:

    14s exacly

  9. Ian:

    I have a feeling the remaining speed issue is related to the spam filter that contacts a 3rd party server. I’m going to try a few different services to see if there is a faster one, or we can just not allow links in comments by unknown users.

  10. Ian:

    Comment with Akismet disabled :)

  11. Ian:

    Slightly faster, but still 5-10 seconds. A forum post is almost instant with more info and database stuff to deal with. Hum.

  12. alexlwa:

    test4

  13. Ian:

    Test without STC enabled…

  14. Ian:

    reenabled

  15. Ian:

    GRC disabled

  16. Ian:

    some hacks to comment.php

  17. Ian:

    removed comment.php hack…
    wordpress.org/support/topic/comments-are-very-slow-to-post

  18. Filip:

    test

  19. alexlwa:

    test5

  20. alexlwa:

    test6

  21. bearmos:

    I was having slow load times in the forum – that’s speedy again now.

  22. Grapsus:

    You can have a full timing report with the PHP extension Xdebug, although I wouldn’t enable it in production, you’d need to clone your setup somewhere to be totally safe for testing.

  23. Asm:

    If the line says “;suhosin.get.max_value_length = 1024″ it’s commented out… changing it won’t do anything unless you uncomment it.

  24. alexlwa:

    test7

  25. Sleepwalker3:

    @Ian, I sent an email about 5 minutes ago advising blog was fast (was very fast), but since then posted twice and noticed it was ‘ok’, but was taking maybe 15 seconds as a guess.

  26. Sleepwalker3:

    Yep, that last post took about 15 seconds also

  27. Ian:

    Posting with a debug plugin enabled.

  28. Ian:

    Posting with a debug plugin enabled…. just takes me to a white screen, so there must be some horrible issue between wordpress and the plugin,..

  29. Ian:

    test comment

  30. Ian:

    test with debugger enabled.

  31. Ian:

    wp-content/plugins/get-recent-comments/get-recent-comments.php:1321 – get_settings is deprecated since version 2.1! Use get_option() instead.

    But I have tried without it before. Disabled anyways and testing now.

  32. Ian:

    Not it… Now timing all MYSQL queries

  33. Ian:

    Total query time: 87.3ms for 52 queries (0.087296009063721s)
    Total num_query time: 0.438 for 58 num_queries.
    ยป Different values in num_query and query? – please set the constant define(‘SAVEQUERIES’, true);in your wp-config.php
    Page generated in 422.9ms; (0.4228839874267578125000s); 79.36% PHP; 20.64% MySQL

  34. Ian:

    Curious that the page generates in half a second, but still takes 10 seconds or more to display.

    My best guess is there is a missing file or bad permissions somewhere and it tried to do something until a timeout or error limit is reached. I don’t see anything in the logs to point to it though.

    Worst case is a problem up in the multiple layers of acceleration and caching.

  35. Ian:

    Memory & Load Time

    Load Time: 266.999 ms
    Max Execution Time: 60
    Memory Used: 48.57MB
    Memery Total: 512M

    Included Files

    Total Files: 181
    Total Size: 4.12MB
    Largest: 180.08kB

  36. Ian:

    Time to finish off the workshop video, enough PHP debugging for now.

  37. Ian:

    For real this time :)

  38. Grapsus:

    test with firebug enabled

  39. Ian:

    Test compared to alternate site

  40. Ian:

    and another with updated group permissions.

Leave a comment





Notify me of followup comments via e-mail. You can also subscribe without commenting.