We got a response "[5] Killed" , any ideas?
我们得到了回复“[5]被杀”,有什么想法吗?
We are running a json crawl script and it dies after a few hours with this.
我们正在运行一个json抓取脚本,它在几个小时后就会死掉。
Edit: uses 70% of system memory. written in ruby w/ C++ ruby gems. It may be dying during a C++ gem. it dies when loading 2.3GB worth of JSON files into 17.5GB of memory.
编辑:使用70%的系统内存。用ruby编写,带有C ++ ruby gems。它可能在C ++ gem期间死亡。当将23GB的JSON文件加载到17.5GB的内存中时它会死掉。
1 个解决方案
#1
3
Most probably, your shell reports that a child process (i.e. your script) was killed (i.e. it received some sort of signal that terminated it - most likely a SIGKILL, but maybe some shell output this message on other signals) due to some circumstances.
最有可能的是,你的shell报告了一个子进程(即你的脚本)被杀死了(即它收到某种终止它的信号 - 很可能是一个SIGKILL,但也许有些shell在其他信号上输出这个消息)由于某些情况。
It's hard to guess what happened, but if I were you I'd check out system logs (for example, running dmesg
) - for example, our script might be running out-of-memory and system's OOM killer kills it.
很难猜到发生了什么,但如果我是你,我会检查系统日志(例如,运行dmesg) - 例如,我们的脚本可能正在运行内存不足而系统的OOM杀手会杀死它。
It would really help to diagnose if you'll post more details (i.e. what script, what it does, what is it written in, how much resources does it use, which OS / libraries are used, how exactly do you run it, what's your shell, etc).
如果您要发布更多详细信息(即什么脚本,它做什么,写入什么,它使用了多少资源,使用了哪些OS /库,您是如何运行它,什么是你的shell等)。
#1
3
Most probably, your shell reports that a child process (i.e. your script) was killed (i.e. it received some sort of signal that terminated it - most likely a SIGKILL, but maybe some shell output this message on other signals) due to some circumstances.
最有可能的是,你的shell报告了一个子进程(即你的脚本)被杀死了(即它收到某种终止它的信号 - 很可能是一个SIGKILL,但也许有些shell在其他信号上输出这个消息)由于某些情况。
It's hard to guess what happened, but if I were you I'd check out system logs (for example, running dmesg
) - for example, our script might be running out-of-memory and system's OOM killer kills it.
很难猜到发生了什么,但如果我是你,我会检查系统日志(例如,运行dmesg) - 例如,我们的脚本可能正在运行内存不足而系统的OOM杀手会杀死它。
It would really help to diagnose if you'll post more details (i.e. what script, what it does, what is it written in, how much resources does it use, which OS / libraries are used, how exactly do you run it, what's your shell, etc).
如果您要发布更多详细信息(即什么脚本,它做什么,写入什么,它使用了多少资源,使用了哪些OS /库,您是如何运行它,什么是你的shell等)。