• Efs

    (@stevendigital)


    Hello,

    I have run some tests on a live site and setup some cron jobs to run on specific times and only ones or 2 times. I have noticed a high CPU usage on the server, when the plugin is active. Test with the plugin activated and deactivated. Is it possible to know why this happens?

    The server is an apache with nginx as a proxy.

    Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    WP Crontrol doesn’t affect the way that cron events are run, so to be honest it’s unlikely that WP Crontrol is the cause.

    • Are you certain that there’s a strong correlation between CPU usage and this plugin being active? Are there cron events that were scheduled to run during the time the plugin wasn’t active?
    • Do you have any paused events that start to run again when the plugin is deactivated? See What happens when I deactivate the WP Crontrol plugin for more info.
    Thread Starter Efs

    (@stevendigital)

    I will make some more test just to be sure, and to be able to provide even more information. Regarding your first question i have monitored this for at least a day. I will do this again and will report here.

    Best Regards

    Thread Starter Efs

    (@stevendigital)

    Hello,

    So, i have run some more tests on the site, just to be sure. So the finds are below.

    With wp-crontrol the CPU and Physical memory usage are higher when the plugin is active. Also, a high CPU activity is related, when I moved some scheduled runs to run in another period of time and once per day. This might have affected the big CPU usage. Regardless that I can still see CPU usage around 60-80% when the plugin is active. If I deactivate the plugin, these stats drop to 40-50%.

    I do not have any paused events currently. All I did was change the time and the frequency that a cron job should start. This is an e-shop site, and I tried to void anything that could brake the site at all.

    Also i would like to ask if there is any way to clear the data that the plugin might have stored, so that i can check again and probably make a better scheduling.

    Let me know of your thougths. Feel free to pass me any guide or documentation. Still trying to learn a thing or 2 about this.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘High CPU Usage when plugin is activated’ is closed to new replies.