Control Web Panel
WebPanel => MySQL => Topic started by: sergdev777 on July 27, 2023, 07:09:47 PM
-
Excessive resource usage: mysql
Resource: Virtual Memory Size
Exceeded: 1122 > 512 (MB)
Executable: /usr/sbin/mariadbd
Command Line: /usr/sbin/mariadbd
PID: 2030 (Parent PID:2030)
Killed: No
I receiving this meassage hundred times a day, how possible to check which sql query eats resource or which file calling this query?
-
We have that as part of the csf/lfd ignore list under *nix 8.x
But that's how we have it configured. Haven't noticed any problems.
-
How much memory do you have allocated on your server? I have 6GB on one VM and this is a typical htop sample:
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
17790 mysql 20 0 1552M 431M 6804 S 0.0 7.6 0:00.06 /usr/sbin/mariadbd
1314 mysql 20 0 1552M 431M 6804 S 0.0 7.6 23:40.57 /usr/sbin/mariadbd
17804 mysql 20 0 1552M 431M 6804 S 0.0 7.6 0:00.06 /usr/sbin/mariadbd
-
How much memory do you have allocated on your server?
2GB.
-
Well, I increased memory on my server to 6GB, but this "excessive resource usage" alert is still remaining.
Sometimes my server go down while this alert.
How possible to check which DB affect this excessive resource usage??
Account: mysql
Resource: Process Time
Exceeded: 719712 > 1800 (seconds)
Executable: /usr/sbin/mariadbd
Command Line: /usr/sbin/mariadbd
PID: 2123 (Parent PID:2123)
Killed: No
-
Enable user statistics so you can monitor resource usage:
https://mariadb.com/resources/blog/using-resource-monitoring-to-avoid-user-service-overload/ (https://mariadb.com/resources/blog/using-resource-monitoring-to-avoid-user-service-overload/)
-
Enable user statistics so you can monitor resource usage:
https://mariadb.com/resources/blog/using-resource-monitoring-to-avoid-user-service-overload/ (https://mariadb.com/resources/blog/using-resource-monitoring-to-avoid-user-service-overload/)
Thanks!
-
There's allot of false alerts for some reason also.
We added the following to the csf.ignore file back when CentOS 8 first came out:
# CentOS 8
exe:/usr/bin/rpcbind
exe:/usr/sbin/mariadbd
exe:/usr/lib/systemd/systemd-resolved
exe:/usr/sbin/rngd
exe:/usr/bin/rpcbind
--
File can be found at; /etc/csf/csf.pignore
-
There's allot of false alerts for some reason also.
We added the following to the csf.ignore file back when CentOS 8 first came out:
# CentOS 8
exe:/usr/bin/rpcbind
exe:/usr/sbin/mariadbd
exe:/usr/lib/systemd/systemd-resolved
exe:/usr/sbin/rngd
exe:/usr/bin/rpcbind
--
File can be found at; /etc/csf/csf.pignore
The web server is under load or restarting when message about "exe:/usr/sbin/mariadbd" is sent.
-
What version MariaDB are you running?
10.11.x is the latest LTS
-
What version MariaDB are you running?
10.11.x is the latest LTS
MariaDB 10.6.15
-
Love that changelog (https://mariadb.com/kb/en/mariadb-10-11-5-release-notes/):
InnoDB
Crashing on I/O error is unhelpful (MDEV-27593) (https://jira.mariadb.org/browse/MDEV-27593)
-
Well, updated to ver 10.11, not resolve the problem.