Skip to content

Instantly share code, notes, and snippets.

@mkorthof
Created June 14, 2017 17:19
Show Gist options
  • Save mkorthof/ca375fc3dacad2aef5a021bcf2b23f8c to your computer and use it in GitHub Desktop.
Save mkorthof/ca375fc3dacad2aef5a021bcf2b23f8c to your computer and use it in GitHub Desktop.
limit freshclam memory usage (cron)
29 */1 * * * clamav [ -x /usr/bin/freshclam ] && { ulimit -Sm 512000; ulimit -Sv 512000; ulimit -Hm 1024000; ulimit -Hv 1024000; /usr/bin/freshclam --quiet; } > /dev/null
@mkorthof
Copy link
Author

...if you can't use cgroups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment