stratosphereips / StratosphereLinuxIPS

Slips, a free software behavioral Python intrusion prevention system (IDS/IPS) that uses machine learning to detect malicious behaviors in the network traffic. Stratosphere Laboratory, AIC, FEL, CVUT in Prague.
Other
712 stars 176 forks source link

Redis WARNING Memory overcommit must be enabled in docker image #979

Closed AlyaGomaa closed 2 months ago

AlyaGomaa commented 2 months ago

Issue:

206:C 02 Sep 2024 15:13:56.851 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

there's no sysctl in docker

AlyaGomaa commented 2 months ago

https://serverfault.com/a/1053334

AlyaGomaa commented 2 months ago

This issue also exists in CI, fixed it here aa12cdc218fd81f3cf5ae1221965888c048ca2c5 by building slips from scratch instead of running unit tests and integration test on a pre-built slips dependencies docker image Now this issue is probably still there in Slips dockers, will test and see how it goes

AlyaGomaa commented 2 months ago

not happening in docker, added info about it in the FAQ.