{"id":1091,"date":"2012-08-23T11:01:43","date_gmt":"2012-08-23T03:01:43","guid":{"rendered":"http:\/\/rmohan.com\/?p=1091"},"modified":"2012-08-23T11:01:43","modified_gmt":"2012-08-23T03:01:43","slug":"how-findkill-zombie-processes","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=1091","title":{"rendered":"How find\/kill zombie processes"},"content":{"rendered":"<div dir=\"ltr\">There are many ways to find out zombie processes , so this is one of examples.<\/div>\n<div dir=\"ltr\">\n<table>\n<colgroup>\n<col width=\"580\" \/><\/colgroup>\n<tbody>\n<tr>\n<td>\n<div dir=\"ltr\"># cat \/etc\/centos-release<\/div>\n<div dir=\"ltr\">CentOS release 6.2 (Final)<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<div dir=\"ltr\">find zombie processes<\/div>\n<div dir=\"ltr\">\n<table>\n<colgroup>\n<col width=\"580\" \/><\/colgroup>\n<tbody>\n<tr>\n<td>\n<div dir=\"ltr\"># top -b -n 1 | grep Z<\/div>\n<div dir=\"ltr\">6072 root \u00a0\u00a0\u00a0\u00a0\u00a020 \u00a0\u00a00 \u00a0\u00a0\u00a0\u00a00 \u00a0\u00a0\u00a00 \u00a0\u00a0\u00a00 Z \u00a00.0 \u00a00.0 \u00a0\u00a00:00.09 dumpcap &lt;defunct&gt;<\/div>\n<div dir=\"ltr\">6075 root \u00a0\u00a0\u00a0\u00a0\u00a020 \u00a0\u00a00 \u00a0\u00a0\u00a0\u00a00 \u00a0\u00a0\u00a00 \u00a0\u00a0\u00a00 Z \u00a00.0 \u00a00.0 \u00a0\u00a00:00.11 dumpcap &lt;defunct&gt;<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<div dir=\"ltr\">or<\/div>\n<div dir=\"ltr\">\n<table>\n<colgroup>\n<col width=\"580\" \/><\/colgroup>\n<tbody>\n<tr>\n<td>\n<div dir=\"ltr\"># \u00a0ps aux | awk &#8216;{ print $8 &#8221; &#8221; $2 }&#8217; | grep -w Z<\/div>\n<div dir=\"ltr\">Z 6072<\/div>\n<div dir=\"ltr\">Z 6075<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<div dir=\"ltr\">kill zombie processes<\/div>\n<div dir=\"ltr\">\n<table>\n<colgroup>\n<col width=\"580\" \/><\/colgroup>\n<tbody>\n<tr>\n<td>\n<div dir=\"ltr\"># kill -9 6072<\/div>\n<div dir=\"ltr\"># kill -9 6075<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>There are many ways to find out zombie processes , so this is one of examples. # cat \/etc\/centos-release CentOS release 6.2 (Final) <\/p>\n<p>&nbsp;<\/p>\n<p> find zombie processes # top -b -n 1 | grep Z 6072 root 20 0 0 0 0 Z 0.0 0.0 0:00.09 dumpcap &lt;defunct&gt; 6075 root 20 0 0 0 0 [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1091"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1091"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1091\/revisions"}],"predecessor-version":[{"id":1092,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1091\/revisions\/1092"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}