Community discussions

MikroTik App
 
lacibsd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Thu Mar 10, 2016 9:48 pm

What is using up my memory?

Sat Feb 19, 2022 3:47 am

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
 
Kanta
newbie
Posts: 36
Joined: Tue May 15, 2018 7:54 pm

Re: What is using up my memory?

Sat Feb 19, 2022 4:39 am

dynamic address lists generation by a firewall rule?
ipv6 neighbor list filling up?
dns?
web proxy?
connection tracking?
 
lacibsd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Thu Mar 10, 2016 9:48 pm

Re: What is using up my memory?

Sun Mar 06, 2022 4:40 am

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.
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11275
Joined: Mon Dec 04, 2017 9:19 pm

Re: What is using up my memory?

Sun Mar 06, 2022 9:22 am

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)?
 
lacibsd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Thu Mar 10, 2016 9:48 pm

Re: What is using up my memory?

Tue Mar 08, 2022 11:14 pm

> :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)?
 
User avatar
TomjNorthIdaho
Forum Guru
Forum Guru
Posts: 1550
Joined: Mon Oct 04, 2010 11:25 pm
Location: North Idaho
Contact:

Re: What is using up my memory?

Tue Mar 08, 2022 11:25 pm

memory or flash ?

If flash
- turn off graphing
- delete all of your backups ( then create a new backup )
 
lacibsd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Thu Mar 10, 2016 9:48 pm

Re: What is using up my memory?

Thu Mar 10, 2022 12:27 am

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)?
 
lacibsd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Thu Mar 10, 2016 9:48 pm

Re: What is using up my memory?

Thu Mar 10, 2022 12:31 am

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 )
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11275
Joined: Mon Dec 04, 2017 9:19 pm

Re: What is using up my memory?

Thu Mar 10, 2022 7:34 am

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.
 
lacibsd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Thu Mar 10, 2016 9:48 pm

Re: What is using up my memory?

Fri Mar 11, 2022 12:41 pm

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.
 
404Network
Member Candidate
Member Candidate
Posts: 285
Joined: Wed Feb 16, 2022 2:04 pm

Re: What is using up my memory?

Fri Mar 11, 2022 1:38 pm

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!
 
lacibsd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Thu Mar 10, 2016 9:48 pm

Re: What is using up my memory?

Sat Mar 12, 2022 7:24 pm

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.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3348
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: What is using up my memory?

Sat Mar 12, 2022 10:25 pm

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.
 
lacibsd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 60
Joined: Thu Mar 10, 2016 9:48 pm

Re: What is using up my memory?

Sun Mar 13, 2022 3:33 am

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.