<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

    主站蜘蛛池模板: 日韩免费一级毛片| 日本zzzzwww大片免费| 免费A级毛片无码久久版| 亚洲欧美成人av在线观看| 成年人免费网站在线观看| 亚洲综合激情五月色一区| 免费精品一区二区三区在线观看| 亚洲一区二区三区在线网站| 拨牐拨牐x8免费| 特级毛片A级毛片100免费播放| 无码欧精品亚洲日韩一区夜夜嗨| 一级毛片aa高清免费观看| 狠狠亚洲婷婷综合色香五月排名| a级毛片毛片免费观看久潮喷 | 免费观看无遮挡www的视频| 亚洲精品自在线拍| 毛片a级毛片免费播放下载| 亚洲国产精品无码久久九九大片| 国产乱子影视频上线免费观看| 好猛好深好爽好硬免费视频| 亚洲av日韩av激情亚洲| 黄色网址免费观看| 亚洲高清乱码午夜电影网| 亚洲一区二区三区在线播放| 蜜桃成人无码区免费视频网站 | 亚洲国产精品无码一线岛国| 最近中文字幕免费mv在线视频| 亚洲精品中文字幕无乱码麻豆| 免费久久精品国产片香蕉| 国产免费黄色无码视频| 亚洲激情视频网站| 一本色道久久88亚洲综合| 一区二区三区观看免费中文视频在线播放 | 国内精品免费久久影院| 亚洲天堂一区二区三区| 亚洲A丁香五香天堂网| 久久这里只精品热免费99| 亚洲精品无码一区二区| 国产亚洲高清不卡在线观看| 女人18毛片水真多免费看| 成人爽a毛片免费|