How do I kill a forkbomb process?

I started forkbomb from normal user account say - "user1" I'm running a script which says

killall -u user1

But it didn't fix the situation.


reboot the computer

if you can't, you could try:

killall -STOP -u user1
killall -KILL -u user1

If by "permanent solution", you mean preventing this happening again, well you can't really, but you can simply reduce the ulimit for the problem users and ignore them.


while true; do killall -u user1; done