Applicable to:
- Plesk for Linux
Symptoms
-
Plesk is inaccessible
Server Error
500 Plesk\Exception\Database
DB query failed: SQLSTATE[HY000] [2002] Connection refused
-
The MariaDB logs show that the process was terminated by the out-of-memory (OOM) killer
The process' exit code is 'killed' and its exit status is 9.
mariadb.service: Failed with result 'oom-kill'.
Subject: Unit failed -
The system memory is limited
total used free shared buff/cache available
Mem: 1.8Gi 796Mi 158Mi 236Mi 908Mi 646Mi
Swap: 0B 0B 0B
Cause
The server doesn't have enough free memory for MariaDB, so it terminates the process to prevent a server crash.
Resolution
To fix the problem, more memory needs to be made available to MariaDB. Some options are:
Note: Reach out to the hosting provider or system administrator if assistance is needed with these steps
- Adjust OOM settings to stop it from terminating the MariaDB process: How to configure the MariaDB unit in order to keep it from getting killed by OOM
- Configure swap to use as backup memory
- Increase the amount of RAM on the server
Comments
0 comments
Please sign in to leave a comment.