Имеется ВПС на Debiad c MariaDB. + ISP панель.
Периодически падает mariadb и не перезапускается.
В логах вижу
Jun 29 09:39:35 vps16408 kernel: [1267939.378888] Out of memory: Killed process 1225920 (mariadbd) total-vm:2682672kB, anon-rs s:134764kB, file-rss:0kB, shmem-rss:0kB, UID:109 pgtables:1384kB oom_score_adj:0
Что странно, поскольку памяти там за глаза. В среднем используется 10-12% в пиках доходит до 25%.
Подскажите куда копать, как выяснить «кто виноват».
Ниже вывод journalctl -eu mariadb
В 09:43:38 я сделал ручной перезапуск службы
root@vps16408:~# journalctl -eu mariadb
июн 29 09:39:34 vps16408.myvps.tld systemd[1]: mariadb.service: A process of this unit has been killed by the OOM killer.
июн 29 09:39:36 vps16408.myvps.tld systemd[1]: mariadb.service: Main process exited, code=killed, status=9/KILL
июн 29 09:39:36 vps16408.myvps.tld systemd[1]: mariadb.service: Failed with result 'oom-kill'.
июн 29 09:39:36 vps16408.myvps.tld systemd[1]: mariadb.service: Consumed 42min 21.652s CPU time.
июн 29 09:43:38 vps16408.myvps.tld systemd[1]: Starting MariaDB 10.5.19 database server...
июн 29 09:43:38 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:38 0 [Warning] Could not increase number of max_open_files to more than 16384 (request: 32186)
июн 29 09:43:38 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:38 0 [Note] Starting MariaDB 10.5.19-MariaDB-0+deb11u2 source revision f8a85af8ca1c937b8d4f847477bd282f>
июн 29 09:43:38 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:38 0 [Note] InnoDB: Uses event mutexes
июн 29 09:43:38 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:38 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
июн 29 09:43:38 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:38 0 [Note] InnoDB: Number of pools: 1
июн 29 09:43:38 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:38 0 [Note] InnoDB: Using generic crc32 instructions
июн 29 09:43:38 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:38 0 [Note] InnoDB: Using Linux native AIO
июн 29 09:43:38 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:38 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, ch>
июн 29 09:43:38 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:38 0 [Note] InnoDB: Completed initialization of buffer pool
июн 29 09:43:38 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:38 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=19504084>
июн 29 09:43:38 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:38 0 [Note] InnoDB: Starting final batch to recover 486 pages from redo >
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 0 [Note] InnoDB: 128 rollback segments are active.
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 0 [Note] InnoDB: Creating shared tablespace for temporary tables
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically wr>
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 0 [Note] InnoDB: 10.5.19 started; log sequence number 19506751676; tr>
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 0 [Note] Plugin 'FEEDBACK' is disabled.
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer>
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 0 [Note] Server socket created on IP: '127.0.0.1'.
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 0 [Note] Reading of all Master_info entries succeeded
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 0 [Note] Added new Master_info '' to hash table
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 0 [Note] /usr/sbin/mariadbd: ready for connections.
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: Version: '10.5.19-MariaDB-0+deb11u2' socket: '/run/mysqld/mysqld.sock' port: 3306 Debi>
июн 29 09:43:39 vps16408.myvps.tld systemd[1]: Started MariaDB 10.5.19 database server.
июн 29 09:43:39 vps16408.myvps.tld /etc/mysql/debian-start[1269959]: Upgrading MySQL tables if necessary.
июн 29 09:43:39 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:39 75 [Warning] Access denied for user 'root'@'localhost' (using passwor>
июн 29 09:43:39 vps16408.myvps.tld /etc/mysql/debian-start[1269970]: Looking for 'mariadb' as: /usr/bin/mariadb
июн 29 09:43:39 vps16408.myvps.tld /etc/mysql/debian-start[1269970]: Reading datadir from the MariaDB server failed. Got the following error wh>
июн 29 09:43:39 vps16408.myvps.tld /etc/mysql/debian-start[1269970]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using passw>
июн 29 09:43:39 vps16408.myvps.tld /etc/mysql/debian-start[1269970]: FATAL ERROR: Upgrade failed
июн 29 09:43:40 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:40 90 [Warning] Access denied for user 'root'@'localhost' (using passwor>
июн 29 09:43:40 vps16408.myvps.tld debian-start[1270009]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
июн 29 09:43:40 vps16408.myvps.tld mariadbd[1269921]: 2023-06-29 9:43:40 0 [Note] InnoDB: Buffer pool(s) load completed at 230629 9:43:40
lines 958-1006/1006 (END)