U
U
uuuu2020-12-22 21:59:03
linux
uuuu, 2020-12-22 21:59:03

How can I stop a process from being killed automatically?

Debian kills the process when it runs out of RAM (most likely).
Is it possible to forbid killing a process?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
rPman, 2020-12-22
@uuuu

Of course, to look for a problem and memory leaks, you can add a swap, in situations where processes allow this, this can help.
You can fork at the moment when the process is being killed (probably makes sense if the reason for the murder is not the physical end of the memory, but some combination of limit settings), after freeing the occupied memory of course. Those. your process will certainly die, but just before death it will give birth to a clone, with less memory consumption.
ps do not do this, it's just out of desperation.
here just discussed how to seize the moment

D
Dmitry, 2020-12-22
@Tabletko

You need to deal with memory leaks and correctly delimit resources, and not disable OOM-killer.

R
Roman Mirilaczvili, 2020-12-22
@2ord

Comparison of operating in user space o...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question