Page 1 of 1

What is using up my memory?

Posted: Sat Feb 19, 2022 3:47 am
by lacibsd
I wonder if there is a way to check what's using up my memory?
Something like "ps aux" on Unix :-)
Attached graphs will show why would I like know. When it went down the router actually crashed and rebooted. Log's were not too useful, unfortunately.
.Image

Re: What is using up my memory?

Posted: Sat Feb 19, 2022 4:39 am
by Kanta
dynamic address lists generation by a firewall rule?
ipv6 neighbor list filling up?
dns?
web proxy?
connection tracking?

Re: What is using up my memory?

Posted: Sun Mar 06, 2022 4:40 am
by lacibsd
ipv6 is disabled
I did check for new firewall roles, I do have a script which dynamically generated them but there were not too much more than before, maybe extra 10 rules
DNS has 15 static record.

Re: What is using up my memory?

Posted: Sun Mar 06, 2022 9:22 am
by sindy
What is the output of the following commands if you run both now and then both e.g. 8 hours later?
:put [:len [/ip firewall address-list find]]
:put [:len [/ip firewall connection find]]


Do you use DoH (DNS over HTTPS)?

Re: What is using up my memory?

Posted: Tue Mar 08, 2022 11:14 pm
by lacibsd
> :put [:len [/ip firewall address-list find]]
51
> :put [:len [/ip firewall connection find]]
318

I'm going to get new numbers in a few hours/tomorrow

I do use DoH.

What is the output of the following commands if you run both now and then both e.g. 8 hours later?
:put [:len [/ip firewall address-list find]]
:put [:len [/ip firewall connection find]]


Do you use DoH (DNS over HTTPS)?

Re: What is using up my memory?

Posted: Tue Mar 08, 2022 11:25 pm
by TomjNorthIdaho
memory or flash ?

If flash
- turn off graphing
- delete all of your backups ( then create a new backup )

Re: What is using up my memory?

Posted: Thu Mar 10, 2022 12:27 am
by lacibsd
Update from today
> :put [:len [/ip firewall address-list find]]
53
> :put [:len [/ip firewall connection find]]
425
> :put [:len [/ip firewall address-list find]]
51
> :put [:len [/ip firewall connection find]]
318

I'm going to get new numbers in a few hours/tomorrow

I do use DoH.

What is the output of the following commands if you run both now and then both e.g. 8 hours later?
:put [:len [/ip firewall address-list find]]
:put [:len [/ip firewall connection find]]


Do you use DoH (DNS over HTTPS)?

Re: What is using up my memory?

Posted: Thu Mar 10, 2022 12:31 am
by lacibsd
memory or flash ?
-> my memory us running low, if that's what you meant

No backups right now on disk
If I disable graphing how do I check the progress?
memory or flash ?

If flash
- turn off graphing
- delete all of your backups ( then create a new backup )

Re: What is using up my memory?

Posted: Thu Mar 10, 2022 7:34 am
by sindy
I do use DoH.
See viewtopic.php?t=174836 .

The number of address-list items and tracked connections is so low that it cannot be related to high memory usage.

Re: What is using up my memory?

Posted: Fri Mar 11, 2022 12:41 pm
by lacibsd
Thank you, I use OpenDNS with DoH for more than a year now and didn't notice issues.
I have an openvpn client on my router, so far seems this is using up the memory, I just disabled it and going to keep an eye on the graphs.
I do use DoH.
See viewtopic.php?t=174836 .

The number of address-list items and tracked connections is so low that it cannot be related to high memory usage.

Re: What is using up my memory?

Posted: Fri Mar 11, 2022 1:38 pm
by 404Network
What is using up my memory?

Try the medical forum, but probably the usual suspects, alcohol, drugs or alzheimers. :-)

Its Friday, i get silly on Fridays!

Re: What is using up my memory?

Posted: Sat Mar 12, 2022 7:24 pm
by lacibsd
Confirmed, once I disabled the openvpn client my memory usage dropped:
Image

The follow up question is, how can I stop openvpn client from using up so much memory? :)

Thank you, I use OpenDNS with DoH for more than a year now and didn't notice issues.
I have an openvpn client on my router, so far seems this is using up the memory, I just disabled it and going to keep an eye on the graphs.

See viewtopic.php?t=174836 .

The number of address-list items and tracked connections is so low that it cannot be related to high memory usage.

Re: What is using up my memory?

Posted: Sat Mar 12, 2022 10:25 pm
by Jotne
What routerOS version do you run? Have you tried upgrade/downgrade?
If you use DoH, try to disable it, and see what happens. For me with one DoH provider i did get saw tooth pattern, see link to Sindy.
Even if memory goes up/down, it worked. Change to other DoH provider fixed my problem.

Re: What is using up my memory?

Posted: Sun Mar 13, 2022 3:33 am
by lacibsd
routerOS:
system package update check-for-updates
            channel: stable
  installed-version: 6.49.4
     latest-version: 6.49.4
             status: System is already up to date
I already determined it is caused by the open-vpn client/interface - see my comment above. Next step is to find how to stop this from using up the memory.

What routerOS version do you run? Have you tried upgrade/downgrade?
If you use DoH, try to disable it, and see what happens. For me with one DoH provider i did get saw tooth pattern, see link to Sindy.
Even if memory goes up/down, it worked. Change to other DoH provider fixed my problem.