Fail2ban high memory usage

The initial fail2ban virtual memory overhead on the server was approximately 350MB.
While that is a lot, you’re not stuck with it. You can modify the over-sized default stack size by adding one line of code to the configuration file.

To limit the memory used by fail2ban, edit /etc/default/fail2ban and add this line to the end of the file.

ulimit -s 256
This sets the default stack size to 256 KB and lowers the memory consumption of fail2ban. Lastly, restart fail2ban.


Also this bug should have been addressed in newer versions, so make sure to update it to the latest.

 

  • fail2ban, high memory usage, high cpu, memory, usage
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

 Centos 8 to Centos 8 Stream migration

Update CentOS 8 to latest available version using command: $ sudo dnf update After updating the...

 Count the amount of inodes - files in a given directory

#!/bin/bash## @title inodes#...

 cve-2021-3156 vulnerability

Qualys Security Advisory Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)...

 Docker failed with the error: Error response from daemon: error creating overlay mount to invalid argument

If you receive below  error when trying to configure a docker application: Docker failed with...

 Fail2ban how to block unblock whitelist ip

fail2ban-client status Status|- Number of jail: 1`- Jail list: sshd This command will show the...