Prevent my node.js app to be killed by the OS

倖福魔咒の 提交于 2020-01-05 02:25:30

问题


I m creating a web tv on a Raspberry Pi

Since the RPi will not always be connected to the net, I need to download the file it will have to play before playing them.

I can download the file, but when I m starting too much download, either by starting them all-at-once or one after another (wich take a lot more time), my app end up killed by the linux system.

Is there any way, in javascript, in node.js, in bash or by editing my algo, to prevent the app from being killed?


回答1:


as I commented ...

Look inside system log files (e.g. /var/log/messages or /var/log/syslog, or the output of dmesg command) for messages relative to your application (or to the node.js processes). You may have gotten out of resources....



来源:https://stackoverflow.com/questions/18589674/prevent-my-node-js-app-to-be-killed-by-the-os

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!