• Hello guys, Lately I am getting annoying out of memory errors on one of Worpdress isntalls.

    I am using cpanel and in the daily logs I cna find this resources as being the most demanding today. I also notice that the issue occurs on the 21st, so I think it is some sort of a cron job or an attack. It doesn’t look to be the regular “memory limit” whoich is already set to 768MB.

    user 98.0 /usr/bin/php /home/user/public_html/wp-admin/admin-ajax.php
    user 96.0 /usr/bin/php /home/user/public_html/wp-cron.php
    user 88.0 /usr/bin/php /home/user/public_html/wp-admin/admin-ajax.php

    Anybody run into this before? How did you solve it?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    This is a good guide to giving WordPress more memory

    https://docs.woocommerce.com/document/increasing-the-wordpress-memory-limit/

    Are you currently giving PHP 768MB?

    Thread Starter sandeo

    (@sandeo)

    Yes, wordpress and php are given enough Memory using the tips from that guide, but it looks like sometimes they use just too much resources. Lately, the issue occurs even more frequently. I also disabled WordPress cron jobs, but that didn’t help.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    wow, that’s a crazy lot of memory. Do you have a lot of plugins and/or custom code?

    Thread Starter sandeo

    (@sandeo)

    Hi Steve,

    Thanks for your reply and sorry for the late reaction from my side(been on holidays). There are some plug-ins installed indeed and a few lines of custom code, but I disabled the most demanding of them (like Yoast SEO), but it didn’t make a difference. Also, the probl3em occured when the custom code was not there yet.

    Is there any way I can trace what is causing the issue? I am using cPanel as OS.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    From *within* wordpress, what does it think is the memory limit?

    throw this into functions.php

    function my_phpinfo() {
       ob_start();
       phpinfo();
       return ob_get_clean();
    }
    add_shortcode( 'my_phpinfo', 'my_phpinfo' );

    then put [my_phpinfo]into a post and see what WP is seeing of PHP.

    Thread Starter sandeo

    (@sandeo)

    Okay, here is what I get:

    memory_limit 768M
    max_execution_time 18000

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    OK, that blows my theory that you did the PHP config wrong. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress running out of memory’ is closed to new replies.