是什么杀死了我的进程,为什么? [英] What killed my process and why?

查看:36
本文介绍了是什么杀死了我的进程,为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序在 Linux 上作为后台进程运行.它目前在终端窗口的命令行中启动.

My application runs as a background process on Linux. It is currently started at the command line in a Terminal window.

最近一个用户在执行应用程序一段时间后,它神秘地死了.正文:

Recently a user was executing the application for a while and it died mysteriously. The text:

被杀

在终端上.这发生了两次.我问是否有人在不同的终端使用了 kill 命令来终止进程?号

was on the terminal. This happened two times. I asked if someone at a different Terminal used the kill command to kill the process? No.

Linux 在什么情况下会决定终止我的进程?我相信 shell 显示已终止"是因为进程在收到 kill(9) 信号后死亡.如果 Linux 发送了 kill 信号,系统日志中是否应该有一条消息解释为什么它被杀死了?

Under what conditions would Linux decide to kill my process? I believe the shell displayed "killed" because the process died after receiving the kill(9) signal. If Linux sent the kill signal should there be a message in a system log somewhere that explains why it was killed?

推荐答案

如果用户或系统管理员没有杀死内核可能拥有的程序.内核只会在异常情况下杀死进程,例如极端资源匮乏(想想 mem+swap 耗尽).

If the user or sysadmin did not kill the program the kernel may have. The kernel would only kill a process under exceptional circumstances such as extreme resource starvation (think mem+swap exhaustion).

这篇关于是什么杀死了我的进程,为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆