T
T
Toster_KSL2016-08-28 13:57:38
linux
Toster_KSL, 2016-08-28 13:57:38

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

1 answer(s)
A
Andrey Shatokhin, 2016-08-28
@Sovigod

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 question

Ask a Question

731 491 924 answers to any question