When I run a “lnms scan”, even with “-t 1”, suddenly all available RAM get occupied:
Then a few seconds later the process gets killed by the OOM and exits with " The process has been signaled with signal “9”."
Now the docs say that LibreNMS has a RAM requirement of 8GB, my machine already has 16GB but this still happens.
Is this a known bug and is there some work-around I could try?
Thanks!
Ok, for anyone else running into this:
The reason seems to be a too large network-mask. There are network-examples with /12 and /16 in the config.php. If you enable them, the memory gets exhausted.
My solution now is to have several entries with smaller subnets like:
$config['nets'][] = "192.168.1.0/24";
$config['nets'][] = "192.168.2.0/24";
$config['nets'][] = "192.168.3.0/24";
…
instead of:
$config['nets'][] = "192.168.0.0/16";
Still, I think this is something the devs should address. Either fix the cause of the exessive memory-usage or at least update the config-example with settings that will not crash when enabled.