RouterBoard run out of memory

I have more than 30 RB but 2-3 of them are rebooting much more often than others. I investigate and I found out that is happening because very small free memory. I setup Watch Dog on all to check the default gateway and if can not check to reboot.

ridiculous thing is that it connect only 1-2-3 customers each of them (and free memory decrease from 46 mb after reboot to 2 mb after 7 hours). RB who connect multiple customers have no problems with memory (free memory is on this machines from 38-46 mb all the time).

how can I investigate what is using memory so much ?

CPU usage is undet Tools->Profile. As much I see the memory usage per item is not available. You can try to disable useless packages under System->Packages, these should free some memory.

Profile shows 98.5-99 % used by IDLE (this normally means FREE RESOURCES) and same time I have 7.3 mb free … witch a single customer browsing.

on identical machine free memory is 38-45 mb.

Packages available is:

  • advanced tools
  • routerboard
  • routing
  • security
  • system
  • user-manager

I do not install ALL packages available, I install only what I need to serve my requirements: web proxy, real IP, OSPF and firewall and Redirect for tcp 80.

Limit memory usage in Web proxy this happen because web proxy use memory and trigger watch dog.
Don’t use unlimited enter some value and problem is gone :slight_smile: .

where exactly I can make this limitation ? pls give me an example.

Are you talking about MAX CACHE SIZE under IP / Web proxy settings ?

excellent remark. After I setup NONE .. the memory free automatically. and .. in deed … the units who was reboot themselves … was setup UNLIMITED. till now I never give attention to that settings. hmmm. big thank you !

florinbro
max-cache-size=unlimited for ip proxy should allow to use available RAM resources, but it should not lead to out of memory problem.
Please send support output file to support (support@mikrotik.com) with current configuration (of if it possible with low amount of RAM left), we will investigate described issue.

10 of my equipment who have settings to UNLIMITED … it reboot … thanks to watchdog settings ! (this equipment’s are located hundreds of km away in mountains).

I try to transform MiB (shown un upper side of the window) into KiB (shown in Web proxy settings).
I used this page: http://www.convertunits.com/from/MB/to/KB
and 30 MB (from 45 mb free) it transform into 36864 KB.
I setup like this al ALL equipment’s with 64 mb ram showing in general 38-45 mb free always !

browsing went like rocket … but after 30 minutes … the RB stop responding … and it was a huge mess … lucky again .. watchdog reboot equipment and I was able to setup Cache Sized on NONE.

please tell me how should I convert from one unit to another if I want to specify a size for browsing improvement ?

RB750 have 15 mb free and 10 mb can be used for CACHE (in my opinion)
RB450 or 493 have 45 mb free and 35 mb can be used for CACHE (in my opinion)

what settings should I type at Cache Size in Web proxy settings ? (to avoid the stop responding case I describe it here up)

Try it, on my 951G with 6.4 set unlimited have restart by watchdog reason low memory, low traffic usually restart happens every 2 days.
Limit memory for proxy cache to 80000 and after that never seen restart work perfectly.

I also have x86 use unlimited more that two years in all version without any problem but on my 951 is some problem related to proxy using memory and memory watchdog is exist.

your RB have 128 MB ram ! the one I use 750 have 32 MB RAM and 450 (493) have 64 MB RAM. what setting you recommend for Web proxy in order do not have restart from Watch Dog ?

I mention that RB750 have only 15 MB FREE after complete start .. and
RB450 (493) have only 45 MB FREE after complete start

how can I calculate what numbers to be written at Cache Size ?

I don’t have experience with that boards I can’t recommend settings sorry.
I thing is problem related to watchdog memory limit and memory limit for proxy.
On x86 never seen to happen this with unlimited work perfectly, by on RB make problem.

Like I say before limit on 80000 on 951 never again see reboot by watchdog low memory.

how did you calculate this 80000 on your equipment ?

now that I setup Max Cache Size to NONE the machines not reboot last 12 hours but .. I would like to take advantage of some small cache.

basically I do not know how to transform MiB from UPER SIDE WINDOW of WINBOX .. into KiB from Web Proxy Settings (Max Cache Size).

I don’t exactly calculate my board have 128MB ram, I see OS use around 25MB put 80000 and any time I have around 20MB memory free and not have problem with memory watchdog.
Maybe try with some small values and rise it to see when watchdog is triggered if you have some RB easy accessible.

I expect Mikrotik to answer the way to calculate since if I use http://www.convertunits.com/from/MB/to/KB and give me very wrong answer.

RB450 have 45 mb free after boot! I decide to give 36 mb for cache. This website transform 36 MB to KB at 36864. I setup like this for MAX CACHE SIZE. after 10 minutes the RB was not responding and after 10 minutes reboot by watch dog. the customers already start calling that internet not working.

so I’m asking .. how is the way it should be calculate ?

just enter 36M as a value RouterOS will automatically set up 36MiB (MiB where 1KiB = 1024 bytes)

2013 10 29 Mik Max Cache Error.jpg
unfortunately it is not working :frowning:

question remain: how much should I setup in KiB to mean 36 MiB like in top side of the WinBox windows.

MKiB
this is kind of lame…

A simple and precisely question it is a lame ? since 2 days I search entire internet and not find a clear answer.
2013 10 30 Mik Max Cache Error.jpg
With Max Cache Size left Unlimited as someone from Mikrotik recommend here up … a customer playing God Game Empire … because of the traffic … make RB450 to be rebooted by watchdog in max 1 hour and this affect other users connected to the same router.

InoX please advice what settings should I place in Max Cache to represent 36 MiB from top of the WinBox window ? simple question.

Try with 36000 :smiley:

Regards

I try and result was a Watchdog reboot because of a System error. So it was happening EXACTLY what happened when it is setup on Unlimited.

The customer plays God Game Empire. This game is over HTTP and seems generate some kind of fault in Web proxy memory or Mikrotik RB450, 750 and 493.