{"id":4683,"date":"2016-07-20T12:23:16","date_gmt":"2016-07-20T12:23:16","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=4683"},"modified":"2021-02-04T06:58:34","modified_gmt":"2021-02-04T06:58:34","slug":"find-kill-zombie-processes-running-server","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/","title":{"rendered":"How to find and Kill all \u2018Zombie processes\u2019 running on server?"},"content":{"rendered":"<p><span style=\"color: #000000;\">In this article I will explain\u00a0the ways to find and kill all Zombies on the server.<\/span><\/p>\n<p><span style=\"color: #000000;\">On Linux operating systems, a zombie process or defunct process is a process that has finished execution but still has an entry in the process table, allowing the process that started it to read its exit status.<\/span><!--more--><\/p>\n<p><span style=\"color: #000000;\"> It almost always means that the parent is still around. If the parent exited, the child would be orphaned and re-parented to init, which would instantly perform the wait. In other words, they should go away once the parent procedure is done.<\/span><\/p>\n<p><span style=\"color: #000000;\">A zombie process doesn\u2019t respond to alerts.<\/span><\/p>\n<h4><span style=\"color: #000000;\"><strong>1. How to\u00a0find the Zombies from process list?<\/strong><\/span><\/h4>\n<p><span style=\"color: #000000;\">You can find out the Zombie processes in different ways:<\/span><\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \"># ps aux |grep \"defunct\"<\/pre>\n<\/div>\n<p>After that run:<\/p>\n<div class=\"output-sh\">\n<pre class=\"lang:default decode:true \"># ps aux |grep Z<\/pre>\n<\/div>\n<h4><strong>2. How many Zombie processes running on your server?\u00a0<\/strong><\/h4>\n<p><span style=\"color: #000000;\">This is just for a count of Zombie processes on the server. It can be done in different ways.<\/span><br \/>\n<span style=\"color: #000000;\">Some examples are as follows:<\/span><\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \"># ps aux | awk {'print $8'}|grep -c Z\r\n5<\/pre>\n<\/div>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \"># ps aux | awk {'print $8'}|grep Z|wc -l\r\n5<\/pre>\n<\/div>\n<h4><strong>3. List the PID of Zombie?<\/strong><\/h4>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \"># ps aux | awk '{ print $8 \" \" $2 }' | grep -w Z\r\nZ 3366\r\nZ 3435\r\nZ 3722\r\nZ 4287\r\nZ 5378<\/pre>\n<\/div>\n<p>To\u00a0kill these processes, you\u00a0have\u00a0to find the parent process first.<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">pstree -paul<\/pre>\n<\/div>\n<p>Example output would be as follows:<\/p>\n<div class=\"output-sh\">\n<pre class=\"lang:default decode:true \">[root@vps ~]# pstree -paul\r\ninit,1\r\n  |-crond,542\r\n  |-dovecot,6576\r\n  |   |-anvil,6577,dovecot\r\n  |   |-config,25099\r\n  |   `-log,6578\r\n  |-httpd,5047\r\n  |   |-httpd,1900,apache\r\n  |   |-httpd,9428,apache\r\n  |   |   |-php-cgi,1904,ctalk\r\n  |   |   |-php-cgi,11989,ctalk\r\n  |   |   `-php-cgi,11994,ctalk\r\n  |   |-httpd,19203,apache\r\n  |   |-httpd,22975,apache\r\n  |   |-httpd,25197,apache\r\n  |   `-httpd,30417,apache\r\n  |-(kthreadd\/3929,2)\r\n  |   `-(khelper\/3929,3)\r\n  |-master,5227\r\n........<\/pre>\n<\/div>\n<p>This will give you the pid of the of the parent of the zombie process. Now you have to kill the parent process or restart the service.<\/p>\n<div class=\"command-sh\">\n<pre class=\"lang:default decode:true \">[root@server]# kill -9<\/pre>\n<\/div>\n<p>That\u2019s it!\u00a0Do share your comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article I will explain\u00a0the ways to find and kill all Zombies on the server. On Linux operating systems, a zombie process or defunct process is a process that has finished execution but still has an entry in the process table, allowing the process that started it to read its exit status. [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":4685,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-4683","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to find and Kill all \u2018Zombie processes\u2019 running on server? - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to find and Kill all \u2018Zombie processes\u2019 running on server? - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"In this article I will explain\u00a0the ways to find and kill all Zombies on the server. On Linux operating systems, a zombie process or defunct process is a process that has finished execution but still has an entry in the process table, allowing the process that started it to read its exit status. [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/07\/zombie-e1469017386832.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Seemab Saleem\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/\"},\"author\":{\"name\":\"Seemab Saleem\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\"},\"headline\":\"How to find and Kill all \u2018Zombie processes\u2019 running on server?\",\"datePublished\":\"2016-07-20T12:23:16+00:00\",\"dateModified\":\"2021-02-04T06:58:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/\"},\"wordCount\":225,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/07\/zombie-e1469017386832.jpg\",\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/\",\"name\":\"How to find and Kill all \u2018Zombie processes\u2019 running on server? - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/07\/zombie-e1469017386832.jpg\",\"datePublished\":\"2016-07-20T12:23:16+00:00\",\"dateModified\":\"2021-02-04T06:58:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/07\/zombie-e1469017386832.jpg\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/07\/zombie-e1469017386832.jpg\",\"width\":177,\"height\":284},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to find and Kill all \u2018Zombie processes\u2019 running on server?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\",\"name\":\"Seemab Saleem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"caption\":\"Seemab Saleem\"},\"description\":\"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!\",\"sameAs\":[\"https:\/\/cpanelplesk.com\/wp62\"],\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to find and Kill all \u2018Zombie processes\u2019 running on server? - cPanel Plesk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/","twitter_card":"summary_large_image","twitter_title":"How to find and Kill all \u2018Zombie processes\u2019 running on server? - cPanel Plesk","twitter_description":"In this article I will explain\u00a0the ways to find and kill all Zombies on the server. On Linux operating systems, a zombie process or defunct process is a process that has finished execution but still has an entry in the process table, allowing the process that started it to read its exit status. [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/07\/zombie-e1469017386832.jpg","twitter_misc":{"Written by":"Seemab Saleem","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/"},"author":{"name":"Seemab Saleem","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648"},"headline":"How to find and Kill all \u2018Zombie processes\u2019 running on server?","datePublished":"2016-07-20T12:23:16+00:00","dateModified":"2021-02-04T06:58:34+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/"},"wordCount":225,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/07\/zombie-e1469017386832.jpg","articleSection":["Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/","url":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/","name":"How to find and Kill all \u2018Zombie processes\u2019 running on server? - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/07\/zombie-e1469017386832.jpg","datePublished":"2016-07-20T12:23:16+00:00","dateModified":"2021-02-04T06:58:34+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/07\/zombie-e1469017386832.jpg","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2016\/07\/zombie-e1469017386832.jpg","width":177,"height":284},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/find-kill-zombie-processes-running-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"How to find and Kill all \u2018Zombie processes\u2019 running on server?"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648","name":"Seemab Saleem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","caption":"Seemab Saleem"},"description":"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!","sameAs":["https:\/\/cpanelplesk.com\/wp62"],"url":"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/4683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=4683"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/4683\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/4685"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=4683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=4683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=4683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}