View Single Post
  #1  
Old 26th October 2010, 17:58
ivomendonca ivomendonca is offline
Banned
 
Join Date: Sep 2009
Posts: 132
Thanks: 10
Thanked 14 Times in 8 Posts
Default Optimize your fail2ban memory use by 90%.

The solution turns out to be a one-liner on Debian Lenny

append the ulimit command to /etc/default/fail2ban file.

Add (to the file) on last line :

"ulimit -s 256"

Using this sets the default stack size for the Python instances running fail2ban to 256 KB and lowers the memory consumption of fail2ban approximately by a factor of 10.

I had 256mb use -> now less than 20.

Last edited by ivomendonca; 9th November 2010 at 20:13.
Reply With Quote
Sponsored Links