Security - No.of processes on Linux
Posted: 24 Oct 2010, 17:25
When setting up a server (or Linux in general) the number of processes are mostly limited.
This is smart to avoid DOS attacks like the fork bomb
Just to chek the limitations on your box you could do a
On 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 that will reduce the possible simultaneous processes to 200 for that user.
This reduction only applies to the user and not to root. So I check all my running processes for all users except root:
On 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?
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?