From Psygen Wiki
Jump to: navigation, search


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