Recovering From A Fork Bomb

The scenario: Your server is not working right: You cannot start new processes! Simple commands like "ls" fail:

yourname@yourserver:~$ ls
-bash: fork: retry: Resource temporarily unavailable

This is a symptom of the kernel reaching the maximum number of processes. On most systems, this is 32768 processes, and on 64-bit …

more ...