• Resolved tdockweiler

    (@tdockweiler)


    In March I used this with zero problems. In April I noticed a weird issue with it.

    When i’d save any WordPress post the loading icon would spin non-stop and i’d get an error. I could click stop and it would be saved. I’d say that 95% of the time saving would fail. If I select to not preload after purge, saving is fine.

    When looking at glances or htop in the console the CPU was being overloaded almost non-stop. I deactivated all plugins to make sure it’s not caused by anything else.

    This is usually started when I preload the cache.

    Tonight it overloaded again. I disabled the preload, cleared the cache and disabled page caching. Still overloading! Only when I actually delete the plugin did the CPU go back to normal. Right now within a half hour of deletion it’s at 2% CPU.

    OK, so some info about the server.

    It use Vultr High Frequency VPS which is 3.7ghz or so and 3 cores. 8gb of ram.

    I use Woocommerce and have about 25K products. My database is about 400mb, but optimized.

    I also use Cloudpanel with Nginx and MYSQL (not MariaDB).

    With other caching plugins (tried 3-4) I never go past 20% CPU usage.

    A month ago when this first started happening I just thought my VPS was too weak and upgraded! Now it’s still overloading!

    I researched this issue and another person had a similar problem. I tried these 3 snippets, but they made zero difference when altering them:

    add_filter(‘wpoptimize_preload_delay’, ‘my_preload_delay_method’, 500000);
    add_filter(‘wpo_page_cache_preload_memory_threshold’, 10485760);

    There was a third one, but on 3 tries it gave a critical error on my site and I had to delete the plugin folder.

    I was going to leave a review, but that’s a bit unfair. Maybe there is a quick fix. It was working great in March! Now it’s not even usable. I tried to remove and reinstall it many times. Maybe some weird compatibility issue with my server. Zero issues with any other caching plugins. So strange.

    NOTE: It’s not a DDOS attack and it’s a medium traffic site. Probably not more than 100k visit per month.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Damilare

    (@deabiodun)

    Hi @tdockweiler!
    Apologies for the server overload issue you’ve encountered.

    Normally, I would have suggested disabling the Automatically preload content after it is purged option at WPO > Cache > Page cache, but since you’ve mentioned that the issue persisted even after disabling Page caching, we can skip that.

    Considering the high number of products you have, the issue could be as a result of your scheduled cache preloading settings at WPO > Cache > Preload.
    Thinking about it, it would take some time for over 25k products to be preloaded after cache expires. At such a time, a fair amount of resources might be expended during that process.

    As for why the issue persisted despite disabling page cache, that is likely attributed to the fact that it was a scheduled task.

    To confirm, you can install the WP Crontrol plugin and check for scheduled events at Tools > Cron events. Enter “wpo” in the search field to find related events. Monitor your site resources during the period when the scheduled preload is expected to run to confirm any relationship with the overload mentioned.

    For now, I would suggest the following:

    1. Disable Automatic preload mentioned earlier,
    2. Disable scheduled preloading,
    3. Delete current/next wpo_page_cache_schedule_preload event via WP Crontrol.

    Let us know what you find or if that helps.

    Kind regards.

    Thread Starter tdockweiler

    (@tdockweiler)

    Thanks for the reply.

    I have good news, but am not sure if this is the cause.

    It’s very possible this plugin just doesn’t play well with the Cloudpanel 1-click install from Vultr. My idea is perhaps the server settings are not stock and are causing issues. I did run WP-Optimize for 1 month, but maybe was not aware of it overloading anything.

    So after I posted that initial message I did a migration to a totally new server. Same specs, but with this time using Plesk (1 click install) and Nginx only (not as reverse proxy).

    I’m currently doing a huge preload and my CPU never hits more than 25-30%. With similar page caching plugins it’s about the same.

    I also was able to save pages without the loading icon spinning non-stop.

    The only major changes to my server is that I’m no longer using PHP 8.4, but a slightly lower version. MariaDB instead of MYSQL. I think the Cloudpanel 1 click install server settings must be wonky or something.

    Plesk has been so reliable for me. I don’t know if the issues were with Cloudpanel, but maybe their settings on the OS didn’t work well with WP-Optimize. I didn’t change any myself and used stock ones.

    Plugin Support Damilare

    (@deabiodun)

    Glad to see that you’ve narrowed the issue down to CloudPanel.
    I’ll check in with our dev team on this.

    Regards.

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

The topic ‘Overloads VPS almost immediately’ is closed to new replies.