OPNsense Forum
Archive => 21.7 Legacy Series => Topic started by: toups on October 19, 2021, 12:05:04 am
-
I have run into an odd memory issue with the latest version of OPNsense. It has not impacted the performance that I have observed and that might be due to my setup having 16GB of RAM (total overkill i3 box). I have attached a 4 day netdata graphs of the ram and swap so you can observe the abrupt utilization of swap.
I have tried restarting a few services I suspected might be involved; OpenVPN, unbound DNS, squid, maltrailserver, & pf; but no effect on the memory utilization. I haven't able to pinpoint a source of the "memory leak".
Can someone point me in the right direction for tracking down the culprit?
-
Try to establish the culprit with top.
I don't use a swap partitition, nor a swap file.
-
I figured it out. It was 'sensor.py' from maltrail. Did a kill -9 and cleaned the up. Memory went back to normal after killing all the stalled processes. Amazing the amount of memory it used.
root 22709 1.6 59.3 14911256 9840288 - S Wed17 82:47.40 python3 /usr/local/share/maltrail/sensor.py (python3.8)
root 64278 1.2 10.7 1879176 1768736 - S Wed17 89:39.83 python3 /usr/local/share/maltrail/sensor.py (python3.8)
root 84879 1.1 10.7 1879472 1779280 - S Wed17 89:47.98 python3 /usr/local/share/maltrail/sensor.py (python3.8)