• Resolved mjgmack

    (@mjgmack)


    Hi,

    My website shows “Error establishing a database connection”, and the support team of cloudways helped me to find the log and told me:

    There is high number of admin ajax request on your application due to which the server is under load conditions. Here are the logs:

    227.31.157, 127.0.0.1 – [13/Nov/2019:11:35:47 +0000] “GET /wp-admin/admin-ajax.php?action=SimpleHistoryNewRowsNotifier&apiArgs%5Bsince_id%5D=235&apiArgs%5Bdates%5D=lastdays%3A30” 200 0 – 842 4321 0.921 2097152 92.33% 4.35% “/wp-admin/admin-ajax.php?action=SimpleHistoryNewRowsNotifier&apiArgs%5Bsince_id%5D=235&apiArgs%5Bdates%5D=lastdays%3A30”
    119.78.177, 127.0.0.1 – [13/Nov/2019:11:35:55 +0000] “GET /wp-admin/admin-ajax.php?action=SimpleHistoryNewRowsNotifier&apiArgs%5Bsince_id%5D=237&apiArgs%5Bdates%5D=lastdays%3A30” 200 0 – 842 9063 0.873 4194304 88.25% 9.17% “/wp-admin/admin-ajax.php?action=SimpleHistoryNewRowsNotifier&apiArgs%5Bsince_id%5D=237&apiArgs%5Bdates%5D=lastdays%3A30”
    227.31.157, 127.0.0.1 – [13/Nov/2019:11:35:57 +0000] “GET /wp-admin/admin-ajax.php?action=SimpleHistoryNewRowsNotifier&apiArgs%5Bsince_id%5D=235&apiArgs%5Bdates%5D=lastdays%3A30” 200 0 – 842 4321 0.903 2097152 91.91% 4.43% “/wp-admin/admin-ajax.php?action=SimpleHistoryNewRowsNotifier&apiArgs%5Bsince_id%5D=235&apiArgs%5Bdates%5D=lastdays%3A30”
    78.177, 127.0.0.1 – [13/Nov/2019:11:36:05 +0000] “GET /wp-admin/admin-ajax.php?action=SimpleHistoryNewRowsNotifier&apiArgs%5Bsince_id%5D=237&apiArgs%5Bdates%5D=lastdays%3A30” 200 0 – 842 9063 0.865 2097152 91.31% 5.78% “/wp-admin/admin-ajax.php?action=SimpleHistoryNewRowsNotifier&apiArgs%5Bsince_id%5D=237&apiArgs%5Bdates%5D=lastdays%3A30”
    227.31.157, 127.0.0.1 – [13/Nov/2019:11:36:07 +0000] “GET /wp-admin/admin-ajax.php?action=SimpleHistoryNewRowsNotifier&apiArgs%5Bsince_id%5D=235&apiArgs%5Bdates%5D=lastdays%3A30” 200 0 – 842 4321 0.987 2097152 80.08% 4.05% “/wp-admin/admin-ajax.php?action=SimpleHistoryNewRowsNotifier&apiArgs%5Bsince_id%5D=235&apiArgs%5Bdates%5D=lastdays%3A30”

    Screenshot : https://prnt.sc/pwncz1
    Wordpress version:5.2.4
    Simple History version:2.33

    How can I fix this problem, thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author P?r Thernstr?m

    (@eskapism)

    You – or anyone else with admin access to your site – most likely have the Dashboard or the Simple History page opened. When those pages are opened in a web browser simple history checks for new events every 10 seconds and those are the requests you see. These requests should be pretty lightweight but if you believe they are adding to the CPU usage of the server you can just make sure to close the tabs while not viewing the log.

Viewing 1 replies (of 1 total)
  • The topic ‘high number of admin ajax request’ is closed to new replies.