<br>
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/webhostingchenna/domains/webhostingchennai.co.in/public_html/blog/wp-content/plugins/wp-linkbuilder/plugin/plugin_class.inc.php</b> on line <b>637</b><br>
{"id":847,"date":"2018-06-11T16:54:43","date_gmt":"2018-06-11T11:24:43","guid":{"rendered":"http:\/\/www.webhostingchennai.co.in\/blog\/?p=847"},"modified":"2019-03-11T12:19:04","modified_gmt":"2019-03-11T06:49:04","slug":"how-to-find-and-kill-all-zombie-processes","status":"publish","type":"post","link":"https:\/\/www.webhostingchennai.co.in\/blog\/how-to-find-and-kill-all-zombie-processes\/","title":{"rendered":"How to Find and Kill All Zombie Processes in Linux"},"content":{"rendered":"<h4><span style=""><strong>How to Find and Kill All Zombie Processes<\/strong><\/span><\/h4>\n<p>On <a href="">Unix operating servers<\/a>, a zombie process or defunct process is a process that has completed execution but still has an entry in the process table, allowing the process that started it to read its exit status.<\/p>\n<p><a href=""><img data-recalc-dims=""><\/a><\/p>\n<p>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 immediately perform the wait(). In other words, they should go away once the parent process is done.<br>\nA zombie process\u00a0<strong>doesn\u2019t react to signals<\/strong>.<\/p>\n<p><strong>1. How can I get the Zombie from process list\u2026?<\/strong><br>\nIts very simple. You can find out Zombie process with the following way:<\/p>\n<pre># ps aux |grep \"defunct\"\r\n\r\nuser1      3366  0.0  0.0      0     0 ?        Z    07:34   0:00 [chromium-browse]\r\nuser1      3435  0.0  0.0      0     0 ?        Z    07:44   0:19 [chromium-browse]\r\nuser1      3722  0.0  0.0      0     0 ?        Z    08:21   0:00 [pidgin] defunct\r\nuser1      4287  0.1  0.0      0     0 ?        Z    09:26   0:38 [chromium-browse]\r\nuser1      5378  0.1  0.0      0     0 ?        Z    11:24   0:15 [chromium-browse] defunct<\/pre>\n<pre># ps aux |grep Z\r\n\r\nUSER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\r\nuser1      3366  0.0  0.0      0     0 ?        Z    07:34   0:00 [chromium-browse] \r\nuser1      3435  0.0  0.0      0     0 ?        Z    07:44   0:19 [chromium-browse] \r\nuser1      3722  0.0  0.0      0     0 ?        Z    08:21   0:00 [pidgin] \r\nuser1      4287  0.1  0.0      0     0 ?        Z    09:26   0:38 [chromium-browse] \r\nuser1      5378  0.1  0.0      0     0 ?        Z    11:24   0:15 [chromium-browse]<\/pre>\n<p><strong>2. How many Zombie process running on your server?<\/strong><\/p>\n<pre># ps aux | awk {'print $8'}|grep -c Z\r\n5<\/pre>\n<pre># ps aux | awk '{ print $8 \" \" $2 }' | grep -wc Z\r\n5<\/pre>\n<pre># ps aux | awk {'print $8'}|grep Z|wc -l\r\n5<\/pre>\n<p><strong>3. List the PID of Zombie ?<\/strong><\/p>\n<pre># 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<p>In order to kill these processes, you need to find the parent process first.<\/p>\n</p><pre># pstree -paul<\/pre>\n<p>This will show the pid of the of the parent of the zombie process. Now you need to kill the parent process.<\/p>\n[root@webhostingchennai]# kill -9<\/p>\n</p><p>Hope this article helps you. Please share you valuable comments to improve us.<\/p>\n</p><p>For changing the SSH port number : <a href="">Click Here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":925,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[12,20],"tags":[169,130,168],"class_list":["post-847","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-vps","tag-finding-zombie-process","tag-killing-zombie-process","tag-zombie-process-in-linux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/06\/zombie.jpg?fit=678%2C320&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9NOHH-dF","jetpack-related-posts":[{"id":857,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/how-to-verify-ddos-attack\/","url_meta":{"origin":847,"position":0},"title":"How to verify DDOS attack with &#8216;netstat&#8217; command on Linux","author":"Cavin","date":"June 14, 2018","format":false,"excerpt":"How to verify DDOS attack with netstat command on Linux Your server appearing pretty slow could be many things from wrong configs, scripts and dodgy hardware, but sometimes it could be a cause someone is flooding your server with traffic known as DoS ( Denial of Service ) or DDoS\u2026","rel":"","context":"In &quot;LINUX&quot;","block_context":{"text":"LINUX","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/06\/netstat.jpg?fit=678%2C340&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/06\/netstat.jpg?fit=678%2C340&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/06\/netstat.jpg?fit=678%2C340&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":743,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/how-find-resource-usages-of-users\/","url_meta":{"origin":847,"position":1},"title":"How do I find resource usages of users in Centos","author":"Cavin","date":"February 26, 2018","format":false,"excerpt":"How to find resource usages of users in Centos In some high load situations, we need to find out the resource consumption of each user in the server to figure out the exact issue. There are a lot of options\/commands to find the same. Normally, we are using the \u201cps\u201d\u2026","rel":"","context":"In &quot;LINUX&quot;","block_context":{"text":"LINUX","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/02\/resource.jpg?fit=640%2C260&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/02\/resource.jpg?fit=640%2C260&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/02\/resource.jpg?fit=640%2C260&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":973,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/tools-to-monitor-linux-performance\/","url_meta":{"origin":847,"position":2},"title":"Command Line Tools to Monitor Linux Performance","author":"Cavin","date":"July 26, 2018","format":false,"excerpt":"Command Line Tools to Monitor Linux Performance Here, we are going to see some of the\u00a0Command Line Tools to Monitor Linux Performance 1. Top \u2013 Linux Process Monitoring Linux Top command is a performance monitoring program which is used frequently by many system administrators to monitor Linux performance and it\u2026","rel":"","context":"In &quot;MONITORING TOOLS&quot;","block_context":{"text":"MONITORING TOOLS","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/monitoring-tools\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/07\/command-line-monitor.jpg?fit=600%2C240&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/07\/command-line-monitor.jpg?fit=600%2C240&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/07\/command-line-monitor.jpg?fit=600%2C240&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":680,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/tuning-apache\/","url_meta":{"origin":847,"position":3},"title":"Tuning Apache (httpd) mpm_worker under cPanel\/WHM (High end server)","author":"Cavin","date":"January 22, 2018","format":false,"excerpt":"Tuning Apache (httpd) mpm_worker under cPanel\/WHM In this tutorial, we are going to see how to fine tune Apache server (httpd) Tuning apache on a cPanel server with a slightly different work load (1 very heavily trafficked application) and was provided with a high performance virtual machine (example setup: 4\u2026","rel":"","context":"In &quot;LINUX&quot;","block_context":{"text":"LINUX","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/linux\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/01\/tuning-apache.jpg?fit=640%2C260&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/01\/tuning-apache.jpg?fit=640%2C260&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2018\/01\/tuning-apache.jpg?fit=640%2C260&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":1604,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/top-50-linux-commands\/","url_meta":{"origin":847,"position":4},"title":"Top 50 Linux Commands","author":"Cavin","date":"September 22, 2021","format":false,"excerpt":"Top 50 Linux Commands you must know as a regular user Here, let us see the top 50 linux commands, used on regular basis ls \u2013 The most frequently used command in Linux to list directories pwd \u2013 Print working directory command in Linux cd \u2013 Linux command to navigate\u2026","rel":"","context":"In &quot;CentOS \/ REDHAT&quot;","block_context":{"text":"CentOS \/ REDHAT","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/linux\/centos-redhat\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2021\/09\/50-commands.jpg?fit=640%2C260&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2021\/09\/50-commands.jpg?fit=640%2C260&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2021\/09\/50-commands.jpg?fit=640%2C260&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":1600,"url":"https:\/\/www.webhostingchennai.co.in\/blog\/important-linux-commands-with-examples\/","url_meta":{"origin":847,"position":5},"title":"Important Linux Commands with Examples","author":"Cavin","date":"September 22, 2021","format":false,"excerpt":"Important Linux Commands with Examples In this post, Let us see the some important linux commands with examples in alphabetical order. agetty adduser\/addgroup alias anacron apropos apt apt-get aptitude arch arp at atq atrm awk batch basename bc bg bzip cal cat chgrp chmod chown cksum clear cmp chown cp\u2026","rel":"","context":"In &quot;CentOS \/ REDHAT&quot;","block_context":{"text":"CentOS \/ REDHAT","link":"https:\/\/www.webhostingchennai.co.in\/blog\/category\/linux\/centos-redhat\/"},"img":{"alt_text":"Important Linux Commands with Examples","src":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2021\/09\/linux-commands.jpg?fit=640%2C260&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2021\/09\/linux-commands.jpg?fit=640%2C260&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2021\/09\/linux-commands.jpg?fit=640%2C260&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/comments?post=847"}],"version-history":[{"count":7,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/847\/revisions"}],"predecessor-version":[{"id":1166,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/posts\/847\/revisions\/1166"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/media\/925"}],"wp:attachment":[{"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/media?parent=847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/categories?post=847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingchennai.co.in\/blog\/wp-json\/wp\/v2\/tags?post=847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}</p></a></p></pre></pre></strong></p></pre></pre></pre></strong></p></pre></pre></strong></p></strong></p></a></p></a></p></strong></span></h4>