Arch: Ubuntu 14.04 LTS AMD64
ntopng x86_64 v.2.0.150531
redis_version:2.8.4
Deployed / Installed via NTOP PPA
deb http://packages.ntop.org/apt-stable/14.04/ x64/
deb http://packages.ntop.org/apt-stable/14.04/ all/
NTOPNG Launch arguments:
--daemon
--community
--http-port 15000
--dns-mode 0
--interface 2
--disable-login 1
--data-dir /opt/ntopng
--disable-alerts
--user ntopng
--local-networks "10.0.0.0/8"
--pid /var/run/ntopng.pid
--disable-autologout
--disable-host-persistency
--sticky-hosts none
Deployed with Apache2 https + authentication front end.
Symptoms:
Since upgrading to NTOPNG 2.0 (from 1.2.1) Redis server consumes more
and more RAM until it eventually overwhelms the available system
resources.
1. I have tried limiting redis max memory and applying a key eviction
policy:
/etc/redis.conf:
maxmemory 1500mb
#maxmemory-policy volatile-lru
#maxmemory-policy volatile-random
maxmemory-policy volatile-ttl
When maxmemory and a maxmemory-policy are defined, redis will grow to a
certain size, and stop growing. While this solves the memory usage
problem, eventually ntopng will crash when it is unable to add/update
keys.
2. I have tried generating a cron job to blow out all the ntopng.dns
keys from redis on a regular basis:
redis-cli KEYS "ntopng.dns*" | xargs redis-cli DEL
This deletes the keys, but does not free up the memory redis is using
(even after a service restart).
3. I have been able to successfully free up ram by running:
redis-cli flushall
After executing the flush, memory does free up, but my interface
customization drops (Interface name + Interface speed).
Is anyone else experiencing this behavior with ntopng? Does anyone have
any workarounds/suggestions on how to resolve?
Thanks,
Nicholas
P.S. ntopng is amazing overall. Thanks to the team that has put in the
time and effort to create it and continue working on it.
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop