防止我的 node.js 应用程序被操作系统杀死 [英] Prevent my node.js app to be killed by the OS
问题描述
我正在 Raspberry Pi 上创建网络电视
I m creating a web tv on a Raspberry Pi
由于 RPi 并不总是连接到网络,我需要下载它必须在播放之前播放的文件.
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.
我可以下载文件,但是当我开始下载太多时,无论是一次启动还是一个接一个启动(需要更多时间),我的应用程序最终会被 linux 系统杀死.
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.
在 javascript、node.js、bash 或编辑我的算法中,有什么方法可以防止应用程序被杀死?
Is there any way, in javascript, in node.js, in bash or by editing my algo, to prevent the app from being killed?
推荐答案
正如我所评论的 ...
查看系统日志文件(例如 /var/log/messages
或 /var/log/syslog
,或 dmesg
的输出命令)用于与您的应用程序(或 node.js
进程)相关的消息.您可能已经没有资源了....
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....
这篇关于防止我的 node.js 应用程序被操作系统杀死的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!