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 19:13.