root@OPNsense:~ # ps aux | grep maltroot 92801 4.0 12.2 2042480 2010324 - S 19:06 55:43.65 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 60547 3.8 12.2 2042480 2010376 - S 19:05 51:04.24 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 63032 2.1 12.2 2044660 2011212 - S 19:07 45:40.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 16601 1.6 12.2 2043252 2011920 - S 19:07 19:29.16 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 26204 1.6 12.2 2043252 2011876 - S 19:07 19:30.77 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 52144 1.6 12.2 2043252 2011920 - S 19:07 19:27.29 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 57799 1.6 12.2 2043252 2011912 - S 19:07 19:31.01 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 71282 1.6 12.2 2042996 2011316 - S 19:07 19:27.99 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 37702 1.5 12.2 2043252 2011896 - S 19:07 19:32.95 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 84110 1.5 12.2 2043252 2011876 - S 19:07 19:28.63 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 2856 0.6 8.7 2040048 1440720 - S 18:13 12:49.65 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 18245 0.0 12.2 2040048 2009608 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 18402 0.0 12.2 2042484 2010140 - I 19:06 0:00.89 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 31085 0.0 12.2 2040048 2009604 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 38651 0.0 12.2 2042484 2010144 - I 19:06 0:00.91 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 38910 0.0 12.2 2040048 2009820 - I 19:06 0:00.74 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 43528 0.0 12.2 2042484 2010144 - I 19:06 0:00.89 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 45590 0.0 0.2 47104 28312 - S 18:12 0:06.38 python3 /usr/local/share/maltrail/server.py (python3.7)root 59845 0.0 12.2 2040048 2009604 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 68733 0.0 12.2 2042484 2010144 - I 19:06 0:00.90 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 72123 0.0 12.2 2040048 2009600 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 73946 0.0 12.2 2040048 2009608 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 77175 0.0 12.2 2040048 2009604 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 78432 0.0 12.2 2040048 2009612 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 86148 0.0 12.2 2042484 2010144 - I 19:06 0:00.90 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 90587 0.0 12.2 2042228 2009920 - I 19:06 0:00.89 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 7953 0.0 0.0 1058012 2424 0 S+ 09:29 0:00.00 grep maltroot@OPNsense:~ #
Hello together,i'm running 20.1.5 and maltrail is using a lot of memory.it looks like it is the sensor.Code: [Select]root@OPNsense:~ # ps aux | grep maltroot 92801 4.0 12.2 2042480 2010324 - S 19:06 55:43.65 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 60547 3.8 12.2 2042480 2010376 - S 19:05 51:04.24 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 63032 2.1 12.2 2044660 2011212 - S 19:07 45:40.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 16601 1.6 12.2 2043252 2011920 - S 19:07 19:29.16 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 26204 1.6 12.2 2043252 2011876 - S 19:07 19:30.77 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 52144 1.6 12.2 2043252 2011920 - S 19:07 19:27.29 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 57799 1.6 12.2 2043252 2011912 - S 19:07 19:31.01 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 71282 1.6 12.2 2042996 2011316 - S 19:07 19:27.99 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 37702 1.5 12.2 2043252 2011896 - S 19:07 19:32.95 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 84110 1.5 12.2 2043252 2011876 - S 19:07 19:28.63 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 2856 0.6 8.7 2040048 1440720 - S 18:13 12:49.65 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 18245 0.0 12.2 2040048 2009608 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 18402 0.0 12.2 2042484 2010140 - I 19:06 0:00.89 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 31085 0.0 12.2 2040048 2009604 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 38651 0.0 12.2 2042484 2010144 - I 19:06 0:00.91 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 38910 0.0 12.2 2040048 2009820 - I 19:06 0:00.74 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 43528 0.0 12.2 2042484 2010144 - I 19:06 0:00.89 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 45590 0.0 0.2 47104 28312 - S 18:12 0:06.38 python3 /usr/local/share/maltrail/server.py (python3.7)root 59845 0.0 12.2 2040048 2009604 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 68733 0.0 12.2 2042484 2010144 - I 19:06 0:00.90 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 72123 0.0 12.2 2040048 2009600 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 73946 0.0 12.2 2040048 2009608 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 77175 0.0 12.2 2040048 2009604 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 78432 0.0 12.2 2040048 2009612 - I 19:07 0:00.06 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 86148 0.0 12.2 2042484 2010144 - I 19:06 0:00.90 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 90587 0.0 12.2 2042228 2009920 - I 19:06 0:00.89 python3 /usr/local/share/maltrail/sensor.py (python3.7)root 7953 0.0 0.0 1058012 2424 0 S+ 09:29 0:00.00 grep maltroot@OPNsense:~ # it is set to capture all, but changing does not make a differance
I am now having the same issue. The sensor is using up over 4GB. There must be a memory leak, no?I cannot find any issues posted on github for maltrail: https://github.com/stamparm/MalTrail/issuesEDIT: There is a discussion about a memory leak from Python3, with a patch: https://github.com/stamparm/maltrail/issues/162 (towards the bottom). But the problem seems further upstream in a library. Does the plugin not have the patch?EDIT2: Just saw today that there is an update for maltrail to 0.22. It takes some time for the memory leak to manifest itself, so won't know for awhile if the patch is there.
I've started getting this the past few days, on 21.7.1, nothing much has changed yet suddenly I'm getting alerted to excessive memory usage.I've now limited it to 500Mb to see how it goes, but for me it's not the server itself but the sensor and annoyingly that does not get restarted when restarting the server. You have to go into the sensor settings and either make a change e.g. memory and click save, or disable/enable it and again click save.
i seem to have same problem with mailtrail since a while back, how do you limit to 500mMb?
Quote from: sp33dy on August 27, 2021, 08:48:49 ami seem to have same problem with mailtrail since a while back, how do you limit to 500mMb?It's a setting for the senor, but it made no difference so I removed Maltrail completely so I cannot show you.