26.07.2019, 11:46
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.
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
Ctrl+F5