ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Ridding your Solaris host of zombie processes

Ridding your Solaris host of zombie processes

原创 Linux操作系统 作者:cqubityj 时间:2010-07-02 14:26:45 0 删除 编辑
Solaris comes with a nifty tool to help deal with zombies (no, they don’t ship you a shotgun with your media kit), and it comes by the name preap. To use preap, you can pass it the PID of the zombie process you want to reap:

$ ps -ef | grep defunct

    root   646   426   0        - ?           0:00 
root 1489 12335 0 09:32:54 pts/1 0:00 grep defunct

$ preap 646
646: exited with status 0

This will cause the process to exit, and the kernel can then free up the resources that were allocated by that process.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/228190/viewspace-666979/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2007-12-19

  • 博文量
    133
  • 访问量
    454944