Answer the question
In order to leave comments, you need to log in
How to disable OOM Killer for process name and not PID?
You need to disable the OOM Killer for the node process, on each server the PID is different, and disabling for the PID is too long and tedious.
Answer the question
In order to leave comments, you need to log in
At the node, the pid changes sometimes. Put in cron
for pid in `ps ax | grep "/node" |grep -v grep | awk '{print \$1;}'| xargs -n1`; do echo -17 > /proc/$pid/oom_adj; done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question