I
I
iloyd2020-05-12 19:27:32
linux
iloyd, 2020-05-12 19:27:32

How to solve linux dead hang problem?

When any process takes all the available memory, the system becomes almost completely unresponsive. It is impossible to connect via ssh, commands do not work (including reboot, if the ssh connection is already open, the system responds to user actions with a delay of several minutes), etc. The system can be in this state for 10-40 minutes , then the process is killed. How to make a process that devours all resources automatically killed immediately?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman Mirilaczvili, 2020-05-12
@2ord

Install and configure earlyoom, oomd according to your memory consumption preferences.
And in order to know what exactly is eating, install atop or another monitoring system.

P
paran0id, 2020-05-12
@paran0id

Tune OOM Killer. If the process is running under systemd, you can set the limits in the unit file, and configure the OOM in the same place.

V
Valentine, 2020-05-21
@ProFfeSsoRr

On the one hand, you can tune oom, on the other hand, you need to set up monitoring and figure it out. Start with netdata or atop. The fact that some application eats all the memory is wrong in itself, you must either understand that it is time to add memory, or correct the configuration so that the application fits into what is available.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question