This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Random restarts
#4
You can try to log CPU/IO and memory but if device just reboot you could loose up to last 30 mins.
It could be also HW issue.
Code:
data = io.readfile('/proc/meminfo')
load = io.readfile('/proc/loadavg'):split(' ')[ 1 ]

memtotal = data:match('MemTotal:%s+(%d+)')
memavail = data:match('MemAvailable:%s+(%d+)')
memusage = math.floor((memtotal - memavail) / memtotal * 1000) / 10

log(load, memusage)
------------------------------
Ctrl+F5
Reply


Messages In This Thread
Random restarts - by zoltan - 25.07.2019, 07:44
RE: Random restarts - by Daniel - 25.07.2019, 08:12
RE: Random restarts - by zoltan - 26.07.2019, 03:33
RE: Random restarts - by Daniel - 26.07.2019, 11:46
RE: Random restarts - by Thomas - 16.08.2019, 08:31
RE: Random restarts - by zoltan - 16.08.2019, 09:41

Forum Jump: