I have just installed FreeBSD 7.1 amd64, created a jail and inside the jail executed the following code:
After few seconds the server stops responding and the load average increased a lot:
On the console I got a lot of this:
Any good hints/tips on how to avoid this on a production server? I pretend to give SSH to many users and would like to avoid this kind of problems.
Thanks in advance.
Code:
#include <stdio.h> int main() { while(1) fork(); }
gcc -o fork forc.c
$./fork
After few seconds the server stops responding and the load average increased a lot:
Code:
977.85 527.55 311.05
On the console I got a lot of this:
Code:
maxproc limit exceeded by uid 1001, please see tuning(7) and login.conf(5).
maxproc limit exceeded by uid 1001, please see tuning(7) and login.conf(5).
maxproc limit exceeded by uid 1001, please see tuning(7) and login.conf(5).
maxproc limit exceeded by uid 1001, please see tuning(7) and login.conf(5).
Any good hints/tips on how to avoid this on a production server? I pretend to give SSH to many users and would like to avoid this kind of problems.
Thanks in advance.
Last edited by a moderator: