<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 閱讀(742) 評論(0)  編輯  收藏 所屬分類: Linux

    主站蜘蛛池模板: 免费看大美女大黄大色| 波多野结衣免费视频观看| 久久亚洲精品成人综合| 亚洲国产精品无码久久| 国产v片免费播放| 222www在线观看免费| 亚洲日本久久久午夜精品| 国产乱色精品成人免费视频| 最新亚洲人成无码网站| 亚洲成a人片在线播放| 亚洲精品又粗又大又爽A片| 国产成人精品高清免费| 国产精品1024在线永久免费| 亚洲精品视频在线| 欧美大尺寸SUV免费| 国产成人综合亚洲一区| 亚洲一区AV无码少妇电影☆| 久久久久久国产精品免费免费男同 | 黄页免费的网站勿入免费直接进入| 国产亚洲精品无码成人| 69免费视频大片| 在线91精品亚洲网站精品成人| 久久电影网午夜鲁丝片免费| 亚洲中文久久精品无码1| 免费人成激情视频| 大陆一级毛片免费视频观看i| 国产亚洲中文日本不卡二区| 久久综合AV免费观看| 九九久久精品国产免费看小说| 免费国产成人午夜私人影视| 免费成人在线电影| 国产一级高青免费| 亚洲第一综合天堂另类专| 亚洲老妈激情一区二区三区| 免费精品人在线二线三线区别| 国产99在线|亚洲| 91在线亚洲综合在线| 日韩高清在线高清免费| 羞羞视频免费网站含羞草| 久久亚洲sm情趣捆绑调教| 亚洲人成网站在线观看青青|