Skip to content

redis is throwing redis.exceptions.OutOfMemoryError even when maxmemory-policy is set in redis.conf #1817

@AlyaGomaa

Description

@AlyaGomaa

cmd: ./slips.py -e 1 -f Dataset/CTU-Normal-35/capture_win-10-1.pcap -o output/capture_win-10-1_pcap_2026-02-20_20:39:57/ -m
host: locally

here redis crashed after 1 hour, 17 minutes of analysis

redis.exceptions.OutOfMemoryError: command not allowed when used memory > 'maxmemory'.                              
                                                                                       

redis.conf:

daemonize yes
stop-writes-on-bgsave-error no
save 
appendonly no
io-threads-do-reads yes
io-threads 4
maxmemory 3gb
maxmemory-policy volatile-lru
activedefrag no

branch: alya/fix_http_analyzer_getting_oom_killed
this is also after adding TTL/periodic cleanup of all redis keys!

  • check what keys are still eating memory
  • TTL in pcaps/files should be way lower than it is when analyzing an interface
  • i think slips is doing manual cleanup every 1h wall-clock time instead of PCAP time, this is why old tws arent deleted?

Metadata

Metadata

Assignees

Labels

BugA bug that needs to be fixed

Type

No type

Projects

Status

Working on it

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions