Load

From Psygen Wiki
Revision as of 17:09, 14 August 2017 by Admin (talk | contribs) (→‎Prevent OOM Killer from killing MySQL)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


MySQL

MySQL Performance Tuning


OOM Killer

OOM Killer kills the process with the highest memory usage to prevent the system from running out of memory. It often triggers due to memory load.

Prevent OOM Killer from killing MySQL

You can create a cron job to keep the PID for MySQL updated in the OOM Killer exclusion list: */1 * * * * root pgrep -f "/usr/bin/mysql" | while read PID; do echo -1000 > /proc/$PID/oom_score_adj; done

References