WordPress.org

Forums

Jetpack by WordPress.com
Slow site (9 posts)

  1. Tribulant Software
    Member
    Posted 1 year ago #

    Excellent plugin with amazing features which we miss now.

    We had to remove it due to slowing down our sites. We had it running on multiple installations, same results, hogs the memory and runs high processes.

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Would you mind running a few more tests, so we can understand if a specific Jetpack module causes the performance issues on your sites?

    Could you enable Jetpack again, and disable all modules, one at a time, as explained here?
    http://jetpack.me/support/#turn-off-jetpack-modules

    It might also be useful to take a look at your site's raw access logs, in order to find out which specific request seems to take too long to complete. If you don't have access to these logs, your hosting provider should be able to help.

    Please let me know if you find anything conclusive. Thanks!

  3. Tribulant Software
    Member
    Posted 1 year ago #

    Seems the problem is stats.

    After a few days, we missed the stats and turned on Jetpack with just the stats module. The rest of them were deactivated.

    5 minutes later the high CPU processes, memory hogging and 500 Internal Server Errors started again.

    It doesn't mean that the other modules won't cause this but at least we know that the stats could be a possible and probable cause.

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Thanks for providing more details about your problem, it's helpful.

    Were you able to check your site's raw access logs, in order to find out if a specific request causes the 500 errors? Feel free to send me the logs, I'd be happy to have a closer look!

  5. Tribulant Software
    Member
    Posted 1 year ago #

    It is my pleasure, I'm glad I could try and help.

    Yes, we checked the logs.

    Like I mentioned, the CPU load is high and it runs at 100% constantly with the Jetpack stats. The memory usage is also very high. As a result of the high processes hogging the server, the load cannot be handled and limits are exceeded so that is the cause. Deactivating Jetpack (just Stats module was active, nothing else) brings the server back to normal and the CPU load as well.

    Another plugin which caused problems was qTranslate. It seems qTranslate loads *all* WordPress options in the wp_options table with each pageload to check for strings to translate. I know it's not relevant, just thought I'd mention the other issue causing our server errors.

  6. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    The memory usage is also very high. As a result of the high processes hogging the server, the load cannot be handled and limits are exceeded so that is the cause.

    Do you see a specific entry in the logs that loads when Jetpack Stats are active, and eats up all the CPU on your server?

  7. Tribulant Software
    Member
    Posted 1 year ago #

    Entry as in the script that causes it ?

    Just the index.php of WordPress
    That could probably mean anything really
    Maybe something that runs on init ?

    Does the Jetpack stats code run inside the plugin itself?
    What if you converted the code to run on the Jetpack stats server and convert the code to Javascript tracking instead? That could take the load off everyone's server and just make a remote request to track. Like Google Analytics.

  8. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    Does the Jetpack stats code run inside the plugin itself?
    What if you converted the code to run on the Jetpack stats server and convert the code to Javascript tracking instead? That could take the load off everyone's server and just make a remote request to track. Like Google Analytics.

    Jetpack Stats live on WordPress.com servers, so it behaves like Google Analytics. However, when you're logged in Jetpack Stats use functions to check your user role and load the dashboard widget as well as the stats screen under Jetpack > Stats. One of these functions must be what's causing the problem.
    http://plugins.trac.wordpress.org/browser/jetpack/trunk/modules/stats.php

    Entry as in the script that causes it ?

    Just the index.php of WordPress
    That could probably mean anything really
    Maybe something that runs on init ?

    Could you try to install the Debug Bar plugin on your site?
    http://wordpress.org/plugins/debug-bar/

    Once installed and activated, you will find a new "Debug" link in the admin bar. If you click it, you will be able to see a list of queries executed when you loaded the page, and how long it took to execute each one of them. That could allow us to find out which query is problematic on your site.

    Thanks!

  9. Tribulant Software
    Member
    Posted 1 year ago #

    Sorry I haven't replied yet.

    We had to deactivate Jetpack on our production sites due to the high processes.

    I'll install it on a test site again somewhere.
    Problem is, the problem may not occur if there isn't traffic and content and all that.
    I'll do my best to get back here with as much information as possible.

    Love Debug Bar by the way, excellent plugin and it has helped us much with development to narrow down performance issues, get rid of deprecated warnings, etc.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.