Why is apache2 showing up a defunct in the process list?
Clash Royale CLAN TAG#URR8PPP
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
add a comment |
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
add a comment |
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
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
process ps apache-httpd
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
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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?
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
add a comment |
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.
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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?
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
add a comment |
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?
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
add a comment |
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?
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?
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Dec 9 '11 at 13:08
answered Dec 9 '11 at 8:55
Sachin DivekarSachin Divekar
3,89811719
3,89811719
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Nov 20 '12 at 15:20
jw013
36.1k6100125
36.1k6100125
answered Nov 20 '12 at 14:13
AneeshAneesh
311
311
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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