LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 09-22-2023, 10:18 AM   #1
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Rep: Reputation: Disabled
Kill a zombie


Hi Folks,

I have one VM which failed to respond and left behind a zombie process. Restarted the VM and stopped properly but zombie persisted. As you can see from htop (attached) the zombie child is still is using 31.6% and MEM USAGE shows 3.7G/7.64G.
What else I did:
- followed lots of literature on this topic
- I killed all <username> processes:
Code:
pkill -U <username>
- I logout and login

Some sources claim zombies can't be kill but I would like to listen your opinions on this before I reboot the machine.

Code:
/home/brad# ps -ef|grep -i defunct
brad      101322       1 59 Sep21 ?        07:48:10 [VirtualBoxVM] <defunct>
root      808905  128336  0 10:51 pts/2    00:00:00 grep --color=auto -i defunct
and
Code:
kill -9 101322 101352

Thanks!
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2023-09-22_10-42-07.jpg
Views:	15
Size:	274.2 KB
ID:	41732  

Last edited by lattimro; 09-22-2023 at 10:20 AM.
 
Old 09-22-2023, 11:15 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,611
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
I don't think you can kill a zombie because the process itself doesn't exist any more. All that exists is the process's task structure within the kernel. In other words, the kernel has the hallucination that the process still exists because its parent hasn't reaped it.

If you try to send a kill signal to the process, nothing happens because there is no running program to receive the signal.
 
Old 09-22-2023, 12:44 PM   #3
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 386

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
I don't think you can kill a zombie because the process itself doesn't exist any more. All that exists is the process's task structure within the kernel. In other words, the kernel has the hallucination that the process still exists because its parent hasn't reaped it.

If you try to send a kill signal to the process, nothing happens because there is no running program to receive the signal.
absolutely right, how then the MEM is not released if there is no process running?

Last edited by lattimro; 09-22-2023 at 12:54 PM.
 
Old 10-28-2023, 09:04 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
A "zombie" process is a child process whose parent has ceased to exist. Normally, this process is re-parented to "process #1" (the old init), which then killed it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: What Are Zombie Processes And How To Find & Kill Zombie Processes? LXer Syndicated Linux News 0 12-10-2017 04:12 PM
Kill a zombie process - which process is the parent that I should kill? Mountain Linux - General 3 12-31-2011 02:44 PM
how to kill zombie process mokku Linux - Server 5 10-25-2007 09:21 PM
Zombie processs how do you kill them? edouglas Linux - Newbie 1 03-04-2007 12:13 AM
Wine zombie processes completely kill sound Haiyadragon Linux - Software 4 01-01-2006 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration