OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: wuwzy on September 26, 2022, 07:07:10 AM

Title: The memory leak problem seems to be back.
Post by: wuwzy on September 26, 2022, 07:07:10 AM
OPNsense 22.7.4-amd64
FreeBSD 13.1-RELEASE-p2
OpenSSL 1.1.1q 5 Jul 2022

After restarting and using it for about 3 days, the 16GB memory can no longer meet the demand. SWAP is already using over 400 MB, which is kind of frustrating, seems to have just been fixed in the last version. Please check it out.
Title: Re: The memory leak problem seems to be back.
Post by: franco on September 26, 2022, 10:05:20 AM
Appreciate the specifics.


Cheers,
Franco
Title: Re: The memory leak problem seems to be back.
Post by: Patrick M. Hausen on September 26, 2022, 02:21:10 PM
Which process is using that memory?

Type:
top

Then o followed by mem and the enter key - to display sorted by memory usage or
o followed by res and the enter key - to display sorted by resident memory size or
o followed by swap and the enter key - to display swap usage.

HTH,
Patrick
Title: Re: The memory leak problem seems to be back.
Post by: wuwzy on September 26, 2022, 02:48:51 PM
thanks boss:   ;D


Title: Re: The memory leak problem seems to be back.
Post by: Patrick M. Hausen on September 26, 2022, 05:43:39 PM
So you are running Suricata.
And that is eating 10G of your 16G alone.

I would ask them how to get the memory usage down.
Title: Re: The memory leak problem seems to be back.
Post by: Supermule on September 26, 2022, 05:48:07 PM
No issues with the same setup in pfsense.

Using 7% of 16GB.....
Title: Re: The memory leak problem seems to be back.
Post by: wuwzy on September 28, 2022, 09:00:36 AM
Thanks for your attention, I don't know why there are so many python3.9 processes, and each process also occupies a lot of memory.    :o :o   ;D ;D
Title: Re: The memory leak problem seems to be back.
Post by: Patrick M. Hausen on September 28, 2022, 11:51:54 AM
ps awwux|grep python
should tell you what scripts these python processes are running.
Title: Re: The memory leak problem seems to be back.
Post by: wuwzy on September 29, 2022, 07:59:30 AM
thanks. Boss.  ;D
Title: Re: The memory leak problem seems to be back.
Post by: Patrick M. Hausen on September 29, 2022, 09:12:45 AM
So maltrail seems to be another consumer of large chunks of memory. I don't use that. Possibly you simply need more RAM with all these services enabled.
Title: Re: The memory leak problem seems to be back.
Post by: wuwzy on September 30, 2022, 06:50:00 AM
OK。   I will closed it.     ;D