Why is apache2 showing up a defunct in the process list?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












5















When I run top I see one line that doesn't look too good:



 2475 www-data 20 0 0 0 0 Z 1 0.0 0:00.19 apache2 <defunct> 


Why is this process <defunct> and what should I do about it?










share|improve this question




























    5















    When I run top I see one line that doesn't look too good:



     2475 www-data 20 0 0 0 0 Z 1 0.0 0:00.19 apache2 <defunct> 


    Why is this process <defunct> and what should I do about it?










    share|improve this question


























      5












      5








      5








      When I run top I see one line that doesn't look too good:



       2475 www-data 20 0 0 0 0 Z 1 0.0 0:00.19 apache2 <defunct> 


      Why is this process <defunct> and what should I do about it?










      share|improve this question
















      When I run top I see one line that doesn't look too good:



       2475 www-data 20 0 0 0 0 Z 1 0.0 0:00.19 apache2 <defunct> 


      Why is this process <defunct> and what should I do about it?







      process ps apache-httpd






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 6 at 21:32









      Rui F Ribeiro

      39.6k1479132




      39.6k1479132










      asked Dec 9 '11 at 4:34









      cwdcwd

      13.6k52115157




      13.6k52115157




















          3 Answers
          3






          active

          oldest

          votes


















          6














          It is harmless. You can ignore it. It is a zombie process. The man page for ps has



          Z Defunct ("zombie") process, terminated but not reaped by its parent.


          See also the Wikipedia page on Zombie process.



          If you really want to get rid of it, restarting apache2 may do the trick. Rebooting the machine will certainly make it go away, but that is definitely not necessary.



          This question is similar. - How can I kill a <defunct> process whose parent is init?






          share|improve this answer

























          • It's actually interesting because I just finished rebooting the machine and the process was sitting there in the list. Thanks for your help.

            – cwd
            Dec 9 '11 at 5:31











          • What if they come even after rebooting or restarting apache? This is happening on two of my servers?

            – Saikrishna
            Feb 9 '15 at 13:24











          • @Sai it shouldn't come up after rebooting. If you have a question, ask it.

            – Faheem Mitha
            Feb 9 '15 at 13:35


















          3














          Defunct processes are zombie processes. The kill command has no effect on a zombie process. These can be killed by killing the parent process. You can find parent from the PPID value. If the PPID is 1(init) i.e. process is adapted by init as the parent is no more, then rebooting is the only solution.






          share|improve this answer
































            3














            You can send a SIGCHLD signal to the parent process instead of killing it. If parent process is registered with this signal and the wait system call is called, this defunct process will be removed.






            share|improve this answer
























              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f26390%2fwhy-is-apache2-showing-up-a-defunct-in-the-process-list%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              6














              It is harmless. You can ignore it. It is a zombie process. The man page for ps has



              Z Defunct ("zombie") process, terminated but not reaped by its parent.


              See also the Wikipedia page on Zombie process.



              If you really want to get rid of it, restarting apache2 may do the trick. Rebooting the machine will certainly make it go away, but that is definitely not necessary.



              This question is similar. - How can I kill a <defunct> process whose parent is init?






              share|improve this answer

























              • It's actually interesting because I just finished rebooting the machine and the process was sitting there in the list. Thanks for your help.

                – cwd
                Dec 9 '11 at 5:31











              • What if they come even after rebooting or restarting apache? This is happening on two of my servers?

                – Saikrishna
                Feb 9 '15 at 13:24











              • @Sai it shouldn't come up after rebooting. If you have a question, ask it.

                – Faheem Mitha
                Feb 9 '15 at 13:35















              6














              It is harmless. You can ignore it. It is a zombie process. The man page for ps has



              Z Defunct ("zombie") process, terminated but not reaped by its parent.


              See also the Wikipedia page on Zombie process.



              If you really want to get rid of it, restarting apache2 may do the trick. Rebooting the machine will certainly make it go away, but that is definitely not necessary.



              This question is similar. - How can I kill a <defunct> process whose parent is init?






              share|improve this answer

























              • It's actually interesting because I just finished rebooting the machine and the process was sitting there in the list. Thanks for your help.

                – cwd
                Dec 9 '11 at 5:31











              • What if they come even after rebooting or restarting apache? This is happening on two of my servers?

                – Saikrishna
                Feb 9 '15 at 13:24











              • @Sai it shouldn't come up after rebooting. If you have a question, ask it.

                – Faheem Mitha
                Feb 9 '15 at 13:35













              6












              6








              6







              It is harmless. You can ignore it. It is a zombie process. The man page for ps has



              Z Defunct ("zombie") process, terminated but not reaped by its parent.


              See also the Wikipedia page on Zombie process.



              If you really want to get rid of it, restarting apache2 may do the trick. Rebooting the machine will certainly make it go away, but that is definitely not necessary.



              This question is similar. - How can I kill a <defunct> process whose parent is init?






              share|improve this answer















              It is harmless. You can ignore it. It is a zombie process. The man page for ps has



              Z Defunct ("zombie") process, terminated but not reaped by its parent.


              See also the Wikipedia page on Zombie process.



              If you really want to get rid of it, restarting apache2 may do the trick. Rebooting the machine will certainly make it go away, but that is definitely not necessary.



              This question is similar. - How can I kill a <defunct> process whose parent is init?







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Apr 13 '17 at 12:36









              Community

              1




              1










              answered Dec 9 '11 at 5:20









              Faheem MithaFaheem Mitha

              22.9k1880135




              22.9k1880135












              • It's actually interesting because I just finished rebooting the machine and the process was sitting there in the list. Thanks for your help.

                – cwd
                Dec 9 '11 at 5:31











              • What if they come even after rebooting or restarting apache? This is happening on two of my servers?

                – Saikrishna
                Feb 9 '15 at 13:24











              • @Sai it shouldn't come up after rebooting. If you have a question, ask it.

                – Faheem Mitha
                Feb 9 '15 at 13:35

















              • It's actually interesting because I just finished rebooting the machine and the process was sitting there in the list. Thanks for your help.

                – cwd
                Dec 9 '11 at 5:31











              • What if they come even after rebooting or restarting apache? This is happening on two of my servers?

                – Saikrishna
                Feb 9 '15 at 13:24











              • @Sai it shouldn't come up after rebooting. If you have a question, ask it.

                – Faheem Mitha
                Feb 9 '15 at 13:35
















              It's actually interesting because I just finished rebooting the machine and the process was sitting there in the list. Thanks for your help.

              – cwd
              Dec 9 '11 at 5:31





              It's actually interesting because I just finished rebooting the machine and the process was sitting there in the list. Thanks for your help.

              – cwd
              Dec 9 '11 at 5:31













              What if they come even after rebooting or restarting apache? This is happening on two of my servers?

              – Saikrishna
              Feb 9 '15 at 13:24





              What if they come even after rebooting or restarting apache? This is happening on two of my servers?

              – Saikrishna
              Feb 9 '15 at 13:24













              @Sai it shouldn't come up after rebooting. If you have a question, ask it.

              – Faheem Mitha
              Feb 9 '15 at 13:35





              @Sai it shouldn't come up after rebooting. If you have a question, ask it.

              – Faheem Mitha
              Feb 9 '15 at 13:35













              3














              Defunct processes are zombie processes. The kill command has no effect on a zombie process. These can be killed by killing the parent process. You can find parent from the PPID value. If the PPID is 1(init) i.e. process is adapted by init as the parent is no more, then rebooting is the only solution.






              share|improve this answer





























                3














                Defunct processes are zombie processes. The kill command has no effect on a zombie process. These can be killed by killing the parent process. You can find parent from the PPID value. If the PPID is 1(init) i.e. process is adapted by init as the parent is no more, then rebooting is the only solution.






                share|improve this answer



























                  3












                  3








                  3







                  Defunct processes are zombie processes. The kill command has no effect on a zombie process. These can be killed by killing the parent process. You can find parent from the PPID value. If the PPID is 1(init) i.e. process is adapted by init as the parent is no more, then rebooting is the only solution.






                  share|improve this answer















                  Defunct processes are zombie processes. The kill command has no effect on a zombie process. These can be killed by killing the parent process. You can find parent from the PPID value. If the PPID is 1(init) i.e. process is adapted by init as the parent is no more, then rebooting is the only solution.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 9 '11 at 13:08

























                  answered Dec 9 '11 at 8:55









                  Sachin DivekarSachin Divekar

                  3,89811719




                  3,89811719





















                      3














                      You can send a SIGCHLD signal to the parent process instead of killing it. If parent process is registered with this signal and the wait system call is called, this defunct process will be removed.






                      share|improve this answer





























                        3














                        You can send a SIGCHLD signal to the parent process instead of killing it. If parent process is registered with this signal and the wait system call is called, this defunct process will be removed.






                        share|improve this answer



























                          3












                          3








                          3







                          You can send a SIGCHLD signal to the parent process instead of killing it. If parent process is registered with this signal and the wait system call is called, this defunct process will be removed.






                          share|improve this answer















                          You can send a SIGCHLD signal to the parent process instead of killing it. If parent process is registered with this signal and the wait system call is called, this defunct process will be removed.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Nov 20 '12 at 15:20









                          jw013

                          36.1k6100125




                          36.1k6100125










                          answered Nov 20 '12 at 14:13









                          AneeshAneesh

                          311




                          311



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f26390%2fwhy-is-apache2-showing-up-a-defunct-in-the-process-list%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown






                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Displaying single band from multi-band raster using QGIS

                              How many registers does an x86_64 CPU actually have?