失效的进程会妨碍其他进程的正常运行吗?

发布于 2024-08-25 02:19:18 字数 1459 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

信仰 2024-09-01 02:19:18

我相信僵尸进程正在保留预定义的套接字集(例如 8000),因此阻止了杂种进程的正确重新启动。

I believe the zombie processes are holding on to the predefined set of sockets (eg 8000), and hence preventing proper restart of the mongrel processes.

对你而言 2024-09-01 02:19:18

僵尸进程有可能阻止新进程。 Linux 可以限制唯一进程的数量,一旦所有这些进程都在使用中,您将无法创建新进程。

在相对现代的 Linux (openSUSE 11.1) 上,默认进程数为 32,768。

顺便说一句,您无法杀死僵尸进程,因为它们已经退出。如果父进程没有获取其子进程,则需要终止父进程,以便 init 可以获取僵尸进程。

进一步思考,您可能没有达到总机器进程限制,而是达到了每用户 ulimit 进程限制。此限制通常低于操作系统总限制。要了解您的限制,您可以运行 ulimit -u

It is possible for zombie processes to prevent new processes. Linux can limit the number of unique process and once all those process are in use, you won't be able to create new processes.

On a relatively modern Linux (openSUSE 11.1), the default is 32,768 processes.

On a side note, you can't kill a zombie process as they have already exited. If the parent processes does not reap it's children, you'll need to kill the parent process so that init can reap the zombies.

On further thought, you're probably not hitting the total machine process limit but the per-user ulimit process limit. This limit is usually lower then the total OS limit. To find out what your limit is you can run ulimit -u

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文