My Oracle Support Banner

How to Avoid MySQL Service Being Killed by Out-of-Memory (OOM) Killer on Linux (Doc ID 1548124.1)

Last updated on MARCH 02, 2022

Applies to:

MySQL Server - Version 5.0 and later
MySQL Cluster - Version 7.1 and later
Information in this document applies to any platform.

Goal

How to avoid MySQL getting killed by the Out-of-Memory (OOM) killer on Linux.

Example of issue:

Mysqld restarts periodically by mysqld_safe but no errors in mysql error log just message that mysqld_safe restarted mysqld. Caused by Linux Out Memory Killer killing mysqld process.
Can be verified by the examining system logs. Entries like below:

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.