I have an OmniTik tower that also serves as a gateway router. It’s limited to 32MB. Recently, I’ve been getting out-of-memory crashes on it. When I checked on it, it was running with 5MB free, and for short periods as little as 800K. I can’t find a way to determine what’s actually using memory, so I’ve been guessing in an attempt to free some more up.
I cut the logging memory down to 100 lines (no appreciable change); disabled the openflow package which I had installed planning to use it later (saved about 1MB), deleted a bunch of disabled rules from my firewall (no change), and looked for queue trees (there wasn’t any – all there was was a single simple queue for one attached user). I have about 90 active firewall rules, all of which do necessary stuff. I could disable ipv6 if I really had to, I’d just feel antisocial.
I looked at tools profile. Most of the time, the router is 82% idle. Every so often there is a spike in flash and management, which I suspect is just log lines writing to disk. Every so often, CPU briefly spikes to 100% in the Winbox menu bar, but it’s not easy to catch the reason in profile.
I have a hard time believing that this router needs 26MB for what I ask it to do, but maybe I’m overlooking something. It does NAT about 60 machines, so maybe this is a factor. Again, there’s no way I can find to ask the router to simply tell me where all this memory is going. I can’t even find the packages’ memory requirements in the wiki.
I can help you with this, if you let me connect to this unit with a read only user I can find exactly whats causing it, if you don’t want to give out access (which I understand) I should be able to work with a supout file if you attach it here.
Just reveal how to check memory usage distribution. I am also going to hit the memory limit on some devices and I would like to know what is the reason.
Because there are so many variables that can use disk space/memory you will need to login to your Mikrotik account and upload the supout.rif file to let it tell you what all is on the system. You can at this point start removing/disabling the various files/packages causing the problem.
It seems my Mikrotik affected too
I updated RouterOS to 6.7 and after that memory leak started. Memory usage used to be about 30MB before update.
What is SUnreclaim? Can it be used by OS?
I had a similar problem just now with my hAP AC2 with 128mb RAM. had a disconnect just a few min ago where the router rebooted due to running out of RAM.
I just tracked my problem down… it was the MTU setting.
I recently increased it to use jumbo frames of 9000.
Once I turned that setting off it went right back to 50% constant usage.
Maybe some mikrotik guru can explain to me why jumbo frames are using so much of my memory. Is it that it needs to keep track of all the jumbo frames or something?
As a side note: my supout.rif file didn’t have a – SECTION MEMORY for some reason.