0
0
0xC0CAC01A2017-08-31 02:11:48
linux
0xC0CAC01A, 2017-08-31 02:11:48

Isn't there a tool for Linux that automatically kills a process that consumes memory more than a given limit?

Probably many. if not everyone, the situation is familiar when the machine freezes, going into an endless swap, while doing nothing but pressing reset is impossible, because the system completely ceases to be interested in what is happening in the outside world and which buttons are pressed. It is somehow strange that at the end of the second decade of the 21st century, the creators of operating systems did not attend to this moment. Just like in the days of Windows 3.1, when any hello world could hang the whole machine.
Is there a tool that automatically kills a process that consumes more memory than a given limit?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zooks, 2017-08-31
@zooks

There is an OOM killer.

A
Alexey Cheremisin, 2017-08-31
@leahch

Well, actually, there was always the good old ulimit https://www.opennet.ru/base/sys/ulimit_mc.txt.html
And the file /etc/security/limits.conf for it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question