OOM Out of memory auto killer for openwrt? can't fork: Out of memory

Hey there,

My router usually gets OOM from running asterisk server I don´t know why. From time to time after a reboot this happens.

The problem is that sometimes I am remote and cant reset on site.

Ok, so let´s try to reboot on the ssh:
root@Casinha:/etc/asterisk# reboot
-ash: can't fork: Out of memory

Is there some kind of service that could reboot by itself or clean memory when the devices consumes all the memory and can´t do anything else?


Try setting a ulimit on memory usage by asterisk? Then asterisk dies when it uses too much memory and you have some mechanism to restart it...