This is smart to avoid DOS attacks like the fork bomb
Just to chek the limitations on your box you could do a
Code: Select all
ulimit -uOn my Mandriva install that is 47000 on my Arch boxes it is about 16000 and on Centos in my Virtualbox it is about 14000.
Now to reduce the number of processes for a user I can simply write
Code: Select all
ulimit -u 200This reduction only applies to the user and not to root. So I check all my running processes for all users except root:
Code: Select all
ps -U root -u root -NOn my overloaded Mandriva with "everything" I get 89 processes. On my servers without GUI I get less than 20.
My question is what would be a "right" value for that limitation on a server? Does anyone have experience?