whois online -> server crash (too many connections mysql)
Posted: Sun Mar 02, 2025 4:39 pm
Hi All
We used phoenixcart since 3 years now and in the last 2 weeks (probably i got a lot of traffic, bots / spammer) i have a couple of time that i receive a error 500 too many connections,
i found out, whenn this happends i see like 120 process in the sql process which tries to do this:
DELETE FROM whos_online WHERE time_last_click < 1740932324 (with different timestamps)
i'm not sure if my problem is because of this, that i have a "bot" attack or something and the whois table want to delete on same time 120 times and this makes problem, but for testing purposes, can somebody tell me if i can disable the whois modul, or do i need this urgently? other idea would be that i change the delete query to a cron job instead on every page load...
in the whois.php i can / could comment the delete, but maybe there is a better way or maybe somebody know the real reason for my too many connections (whois table was / is 14'000k entries at the moment, so i'm guessing there is a lot on our server bots / spam / indexing)
thanks for letting me know asap, i'm a little bit worried
We used phoenixcart since 3 years now and in the last 2 weeks (probably i got a lot of traffic, bots / spammer) i have a couple of time that i receive a error 500 too many connections,
i found out, whenn this happends i see like 120 process in the sql process which tries to do this:
DELETE FROM whos_online WHERE time_last_click < 1740932324 (with different timestamps)
i'm not sure if my problem is because of this, that i have a "bot" attack or something and the whois table want to delete on same time 120 times and this makes problem, but for testing purposes, can somebody tell me if i can disable the whois modul, or do i need this urgently? other idea would be that i change the delete query to a cron job instead on every page load...
in the whois.php i can / could comment the delete, but maybe there is a better way or maybe somebody know the real reason for my too many connections (whois table was / is 14'000k entries at the moment, so i'm guessing there is a lot on our server bots / spam / indexing)
Code: Select all
protected static function expire($current_time) {
//$GLOBALS['db']->query("DELETE FROM whos_online WHERE time_last_click < " . (int)($current_time - 900));
}