When my server runs into out-of-memory, it usually kills several applications. How can i prevent from killing SSH? Because usually, when this out-of-memory error happens, my SSH is broken like this:
I connect to ssh server.
Enter username
Enter password
and then i wait
i wait
and wait...
and waaaaaaaaaait..
and then:
Connection timed out.
Is there any way to prevent this? How can i increase priority of process?