- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: unable to kill -9 for zombie process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2011 11:15 PM
тАО02-19-2011 11:15 PM
I tried to kill a zombie process but it could not stopted (top -> kill -9 PID).
top indicated of 5 zombie and several sleep processes.
The zombie process belong to other user.
I tried to rlogin to this user but it didnt work.
I tried to find an equivalent command pstree (in order to kill the parent) but I count found.
Please advice,
Yaron
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2011 12:54 AM - last edited on тАО09-02-2011 12:20 PM by Kevin_Paul
тАО02-20-2011 12:54 AM - last edited on тАО09-02-2011 12:20 PM by Kevin_Paul
SolutionHi,
There is a 'pstree' script for HP-UX, see attachment... Hope that will help you!
BTW, there are quite a few threads on ITRC that discuss killing zombie processes, have a look at for example:
http://h30499.www3.hp.com/t5/System-Administration/Zombie-process-utilising-99-of-the-CPU/m-p/4722622#M385884
sangilak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2011 01:49 AM
тАО02-20-2011 01:49 AM
Re: unable to kill -9 for zombie process
I red the "Zombie process utilising 99% of the CPU issue".
How can I install the script?
What location?
Can it harm the system?
BR,
Yaron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2011 03:09 AM
тАО02-20-2011 03:09 AM
Re: unable to kill -9 for zombie process
It is just a shell script. So just put it in /tmp (for example), rename it to 'ptree', give it executable permissions and run the script. See a copy/past from the script's code below:
# SYNOPSIS
# ptree [-n] [pid]
# ptree [-n] [pid] [level] [datafile]
#
# DESCRIPTION
# This command will print the process tree for the
# process identified by pid. When called by the user,
# only the first format shown should be used. If the
# process ID (pid) is not passed, process 1 is assumed.
#
# The second format of this command is only used when
# this command calls itself recursively to print the next
# level of the process tree.
#
# -n Do not recurse
I found the script in another thread on ITRC and it looks harmless to me. But just have a look at the code yourself if you have any doubts.
sangilak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2011 03:24 AM
тАО02-20-2011 03:24 AM
Re: unable to kill -9 for zombie process
>in order to kill the parent
You can use "ps -fp PID" to find the zombie master.
- Tags:
- zombie master
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2011 04:31 AM
тАО02-20-2011 04:31 AM
Re: unable to kill -9 for zombie process
I put is on tmp
change the name for ptree
#chmod 777 ptree
#ptree
ptree: command not found
then I tried to move it to .sh
# mv ptree ptree.sh
#ptree.sh
/sbin/sh: ptree: not found.
What did I miss?
BR,
Yaron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2011 04:44 AM
тАО02-20-2011 04:44 AM
Re: unable to kill -9 for zombie process
Try (depending what the name of the script now is):
# ./ptree
or
# ./ptree.sh
Or just specify the full path:
# /tmp/ptree
or
# /tmp/ptree.sh
sangilak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2011 05:17 PM
тАО02-20-2011 05:17 PM
Re: unable to kill -9 for zombie process
Some kind of bad code.
It is not using 99% of the cpu.. look at your cpu utilization in top.
ONly way to get rid of zombies is to reboot if they do not go away after a few minutes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2011 08:58 PM
тАО02-20-2011 08:58 PM
Re: unable to kill -9 for zombie process
A zombie who uses >90% CPU...
Is it dead or is it dead...
Sleep processes - yes it is normal that some processes have to wait for different events to take place.
rlogin - require specific setup of trust between your users. Normally you can not do rlogin (remote login) to users.
If you ar root user on the same machine you could use the su command to "login" as this user 'su user' or 'su - user' see man su
/Tor-Arne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2011 10:45 AM
тАО02-21-2011 10:45 AM
Re: unable to kill -9 for zombie process
That's the problem, top gets it wrong.
>Only way to get rid of zombies is to reboot
That's not the only way. If you kill the zombie master, they will be reaped.