At the moment no one give a decent reply because more detailed information is needed. Your post did not include looking at any error logs and that is where you will find what specific problems are occurring. Once that is known, suggestions can be made on what to do.
Hi Champs
Sorry i didn’t look at errors because i haven’t really had many to take note of. Ive really been going blind on this a bit. I have cPanel.net helping, but they don’t have any system problems. I have some mysql error logs too, ill just put them in the next post.
Here’s the latest of them. Although the error connecting to the database was daily for the last how many days. Many.
[10-Jun-2021 08:40:45 UTC] PHP Warning: Error while sending QUERY packet. PID=22396 in /home/cooper_p489f3894/public_html/wp-includes/wp-db.php on line 2056
[10-Jun-2021 09:32:25 UTC] PHP Warning: Error while sending QUERY packet. PID=32658 in /home/cooper_p489f3894/public_html/wp-includes/wp-db.php on line 2056
[10-Jun-2021 09:32:25 UTC] PHP Warning: Error while sending QUERY packet. PID=32652 in /home/cooper_p489f3894/public_html/wp-includes/wp-db.php on line 2056
[10-Jun-2021 09:32:25 UTC] PHP Warning: Error while sending QUERY packet. PID=32655 in /home/cooper_p489f3894/public_html/wp-includes/wp-db.php on line 2056
[10-Jun-2021 09:32:25 UTC] PHP Warning: Error while sending QUERY packet. PID=32649 in /home/cooper_p489f3894/public_html/wp-includes/wp-db.php on line 2056
[10-Jun-2021 22:32:50 UTC] PHP Warning: Error while sending QUERY packet. PID=2280 in /home/cooper_p489f3894/public_html/wp-includes/wp-db.php on line 2056
Heres the mysql log:
[20:45:16 ## root@## ~]cPs# grep -Ei "(out of memory|oom)" /var/log/messages* -A 1 | grep -i mysql
/var/log/messages:Jun 6 04:08:31 ##kernel: Out of memory: Kill process 16405 (mysqld) score 213 or sacrifice child
/var/log/messages-Jun 6 04:08:31 ##kernel: Killed process 16405 (mysqld), UID 27, total-vm:1158956kB, anon-rss:400140kB, file-rss:0kB, shmem-rss:0kB
/var/log/messages:Jun 6 04:08:57 ## kernel: mysqld invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
/var/log/messages-Jun 6 04:08:57 ##kernel: mysqld cpuset=/ mems_allowed=0
/var/log/messages:Jun 6 04:08:58 ##kernel: Out of memory: Kill process 5369 (mysqld) score 91 or sacrifice child
/var/log/messages-Jun 6 04:08:58 ##kernel: Killed process 5369 (mysqld), UID 27, total-vm:1101064kB, anon-rss:170464kB, file-rss:0kB, shmem-rss:0kB
/var/log/messages:Jun 6 04:09:16 ##kernel: mysqld invoked oom-killer: gfp_mask=0x280da, order=0, oom_score_adj=0
/var/log/messages-Jun 6 04:09:16 ##kernel: mysqld cpuset=/ mems_allowed=0
/var/log/messages:Jun 6 04:09:28 ##kernel: Out of memory: Kill process 5517 (mysqld) score 89 or sacrifice child
/var/log/messages-Jun 6 04:09:28 ##kernel: Killed process 5517 (mysqld), UID 27, total-vm:1101072kB, anon-rss:167940kB, file-rss:0kB, shmem-rss:0kB
/var/log/messages:Jun 6 22:25:21 ##kernel: Out of memory: Kill process 5639 (mysqld) score 282 or sacrifice child
/var/log/messages-Jun 6 22:25:21 ##kernel: Killed process 5639 (mysqld), UID 27, total-vm:1164796kB, anon-rss:529624kB, file-rss:0kB, shmem-rss:0kB
/var/log/messages-20210606:Jun 5 00:30:37 ##kernel: Out of memory: Kill process 1666 (mysqld) score 300 or sacrifice child
/var/log/messages-20210606-Jun 5 00:30:37 ##kernel: Killed process 1666 (mysqld), UID 27, total-vm:1170780kB, anon-rss:562804kB, file-rss:0kB, shmem-rss:0kB
/var/log/messages-20210606:Jun 5 05:47:17 ##kernel: Out of memory: Kill process 25751 (mysqld) score 253 or sacrifice child
/var/log/messages-20210606-Jun 5 05:47:17 ##kernel: Killed process 25751 (mysqld), UID 27, total-vm:1188524kB, anon-rss:475012kB, file-rss:0kB, shmem-rss:0kB
Errors you provided are from June 10 and 6. If you have no errors with today’s date then problems are intermittent. That could mean problems occur when server is temporarily under a heavy load such as Bot attack.
Presuming you already have some security directives in your .htaccess and some security plugins, two plugins I recommend are:
https://wordpress.org/plugins/blackhole-bad-bots/
https://wordpress.org/plugins/limit-login-attempts-reloaded/