<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Chan Chen Coding...

    How to kill defunct process

    How to kill defunct process

    with 17 comments

    Defunct processes are corrupted processes that can no longer communicate between the parent and child one. Sometimes, they become “zombies” and remain in your system until you reboot your machine. You can try to apply “kill -9″ command, but most of the time you’ll be out of luck.

    In order to kill theses defunct processes, you have two choices:
    1. Reboot your computer
    2. Continue reading…

    First, let’s find out if the system contains defunct process:

    $ ps -A | grep defunct

    Assume your output is as the following:


    8328 ? 00:00:00 mono <defunct>
    8522 ? 00:00:01 mono <defunct>
    13132 ? 00:00:00 mono <defunct>
    25822 ? 00:00:00 ruby <defunct>
    28383 ? 00:00:00 ruby <defunct>
    18803 ? 00:00:00 ruby <defunct>

    This means you have 6 defunct processes: 3 of mono, and 3 of ruby. These processes exists because of poorly written application or unusual action taken by the user, in my case there must be some serious problem with the program I wrote in mono C# :-)

    Now, let’s find the ID of the process and its parent’s:

    $ ps -ef | grep defunct | more

    The output from the above command:

    UID PID PPID ...
    ---------------------------------------------------------------


    kenno 8328 6757 0 Mar22 ? 00:00:00 [mono] <defunct>
    kenno 8522 6757 0 Mar22 ? 00:00:01 [mono] <defunct>
    kenno 13132 6757 0 Mar23 ? 00:00:00 [mono] <defunct>
    kenno 25822 25808 0 Mar27 ? 00:00:00 [ruby] <defunct>
    kenno 28383 28366 0 Mar27 ? 00:00:00 [ruby] <defunct>
    kenno 18803 18320 0 Apr02 ? 00:00:00 [ruby] <defunct>

    UID: User ID
    PID: Process ID
    PPID: Parent Process ID

    If you try to kill the process with ID 8328 with the command “kill -9 8328″, it may not work. To properly kill it, you need to execute the kill command on its parent whose ID is 6757 ($kill -9 6757). Continue applying the kill command on all the PPID, and verify your result ($ps -A | grep defunct).

    If the previous command display no result, well done, otherwise you may need to reboot your system.

    Source:

    http://wagoneers.com/UNIX/KILL/Kill.html

    http://www.cts.wustl.edu/~allen/kill-defunct-process.html



    -----------------------------------------------------
    Silence, the way to avoid many problems;
    Smile, the way to solve many problems;

    posted on 2012-03-20 16:58 Chan Chen 閱讀(736) 評論(0)  編輯  收藏 所屬分類: Linux

    主站蜘蛛池模板: 国产成人亚洲综合一区| 亚洲综合婷婷久久| 亚洲AV无码一区二区三区电影| 88av免费观看| 亚洲视频在线免费播放| 亚洲一区二区三区免费在线观看 | 污视频网站在线观看免费| 在线播放免费人成视频在线观看 | 久久精品国产精品亚洲艾草网美妙| 日本精品久久久久久久久免费 | 亚洲精品无码日韩国产不卡?V| 一区二区免费电影| 亚洲中文字幕无码一区| 久草免费福利资源站| 久久亚洲精品中文字幕| 日韩版码免费福利视频| 亚洲AV成人精品日韩一区| 亚洲精品97久久中文字幕无码| 最近国语视频在线观看免费播放 | 免费看AV毛片一区二区三区| 色天使色婷婷在线影院亚洲| 亚洲国产精品视频| 免费成人在线电影| 亚洲国产成人精品无码区在线秒播| 毛片免费观看网址| 又硬又粗又长又爽免费看 | 成年女人毛片免费播放视频m | 国产亚洲精品免费| 亚洲精品蜜桃久久久久久| **俄罗斯毛片免费| 亚洲国产无线乱码在线观看 | 成人黄页网站免费观看大全| 免费无码专区毛片高潮喷水| 亚洲国产精品无码中文字| 黄页网站免费观看| 永久免费观看黄网站| 亚洲黄色网址在线观看| 国产人妖ts在线观看免费视频| 18禁超污无遮挡无码免费网站| 色偷偷女男人的天堂亚洲网| 亚洲熟女一区二区三区|