• jomo

    (@jonathanmoorebcsorg)


    I’ve been debugging resource usage and separated out the cron to run via wp-cli and log what is happening, the results I get are eg:

    lfd alert:

    lfd : Excessive resource usage: mysite (24747 (Parent PID:24740))
    Time:         Fri May  4 22:30:56 2018 +0000
    Account:      mysite
    Resource:     Virtual Memory Size
    Exceeded:     611 > 512 (MB)
    Executable:   /home/virtfs/mysite/opt/cpanel/ea-php71/root/usr/bin/php
    Command Line: /opt/cpanel/ea-php71/root/usr/bin/php /usr/local/bin/wp cron event run --due-now --url=https://www.mysite.com/
    PID:          24747 (Parent PID:24740)
    Killed:       No

    cron running at that time:

    04-05-18/22:30:01
    Notice: Undefined index: ii in /home/mysite/public_html/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/bg.api.php on line 48
    Notice: Undefined index: ii in /home/mysite/public_html/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/bg.api.php on line 48
    Notice: A non well formed numeric value encountered in /home/mysite/public_html/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc/nxs_functions.php on line 369
    Notice: Undefined variable: cType in /home/mysite/public_html/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/fl.api.php on line 44
    Notice: Undefined offset: 2 in /home/mysite/public_html/wp-content/plugins/nxs-snap-pro-upgrade/nxs-snap-pro-upgrade.php(40) : eval()'d code on line 60
    Notice: Trying to get property of non-object in /home/mysite/public_html/wp-content/plugins/nxs-snap-pro-upgrade/nxs-snap-pro-upgrade.php(40) : eval()'d code on line 60
    Notice: Array to string conversion in /home/mysite/public_html/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/tr.php on line 238
    Notice: A non well formed numeric value encountered in /home/mysite/public_html/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc/nxs_functions.php on line 369
    Executed the cron event 'nxs_querypost_event' in 69.71s.
    Notice: Constant DOING_CRON already defined in /home/mysite/public_html/wp-content/plugins/woocommerce-abandoned-cart/cron/wcal_send_email.php on line 9
    Executed the cron event 'woocommerce_ac_send_email_action' in 0.128s.
    Success: Executed a total of 2 cron events.
    Reposter [Time to Post] Reposter ID:19542 	+ Finished crons for https://www.mysite.com/
    04-05-18/22:31:16
    Done

    I don’t always see those error messages but a recurring theme is a very long running nxs_querypost_event appearing at the same time as very high memory usage as per previous
    Executed the cron event ‘nxs_querypost_event’ in 69.71s.

    • This topic was modified 8 years ago by jomo.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author NextScripts

    (@nextscripts)

    You can clear it from Help/Support page.

    How many records do you have in that table?
    Does your WP database user have rights to delete records?

    Thread Starter jomo

    (@jonathanmoorebcsorg)

    Which table?
    There are 84 rows in nxs_query and 250 in nxs_log, it doesn’t seem excessive
    Yes I have all access
    Thanks

    • This reply was modified 8 years ago by jomo.
    Plugin Author NextScripts

    (@nextscripts)

    Are you using URL shortener?

    Thread Starter jomo

    (@jonathanmoorebcsorg)

    yes Bitly, but only for Twitter, I don’t set “Force Shortened Links”

    Plugin Author NextScripts

    (@nextscripts)

    Is it set correctly and working?

    Thread Starter jomo

    (@jonathanmoorebcsorg)

    Yes, bitly is working well, for twitter and flickr, the links are working

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

The topic ‘600MB cron jobs’ is closed to new replies.