What's the best way to clean up after a fork bomb?

Posted by raldi on Server Fault See other posts from Server Fault or by raldi
Published on 2008-10-07T22:19:02Z Indexed on 2010/06/06 8:12 UTC
Read the original article Hit count: 342

Filed under:
|
$ ls
bash: no more processes

Uh oh. Looks like someone made a fork bomb. Where I used to work, this pretty much meant that the shared server would need to be power-cycled, since even the sysadmins with root often couldn't get the problem cleaned up. Often, they couldn't even get a prompt.

I've heard a few tricks (notably, to send STOP signals rather than KILL signals, since the latter would allow the remaining threads to immediately replace the killed ones), but I've never seen a comprehensive guide entitled So, You Have Yourself a Fork Bomb?

Let's make one.

© Server Fault or respective owner

Related posts about unix

Related posts about fork