- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Kill 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
Forums
Discussions
Discussions
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
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
07-19-2002 07:23 AM
07-19-2002 07:23 AM
Kill Process !
I was monitoring my server, and note some process about one user, but when I tried to kill them (kill -9 pid), this processes continue in my system . The list of processes users are:
# ps -ef | grep afscmrg
afscmrg 26484 1 0 Jul 18 ? 0:00 -sh
afscmrg 9638 1 0 00:33:58 ? 0:00 -sh
afscmrg 9093 1 0 00:18:21 ? 0:00 -sh
afscmrg 18625 1 0 00:48:01 ? 0:00 -sh
afscmrg 9315 1 0 00:25:45 ? 0:00 -sh
afscmrg 1133 1 0 03:40:37 ? 0:00 -sh
afscmrg 29818 1 0 02:59:16 ? 0:00 -sh
How can I kill this processes ?, I think are zombies processes.
Thank's in advance !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2002 07:26 AM
07-19-2002 07:26 AM
Re: Kill Process !
they are not zombies, they belong to init.. check out the PPID. So you can kill init!! or correctly exit the app.
you might trying to use fuser to close the open files they are using, then try to kill them. lsof from hpux.cs.utah.edu may help.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2002 07:28 AM
07-19-2002 07:28 AM
Re: Kill Process !
To see your zombies use:
ps -ef | grep defunct
or
top
~ Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2002 07:30 AM
07-19-2002 07:30 AM
Re: Kill Process !
Do a
ps -fu afscmrg
& see the listing. These appear to be shells & *should* be able to be killed with a
kill -4 PID
If that doesn't do it, then check out the parent PID (PPID) & kill it AFTER determining just what it is - DON'T kill PID 1
You should always only use -9 as a last resort - you can leave orphaned shared memory segments on the system that would need to be manually cleaned up.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2002 07:34 AM
07-19-2002 07:34 AM
Re: Kill Process !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2002 08:02 AM
07-19-2002 08:02 AM
Re: Kill Process !
try this
kill -9 `ps -ef|grep afscmrg|awk '{print $2}'`
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2002 10:39 AM
07-19-2002 10:39 AM
Re: Kill Process !
a process does only *die* (after being *kill*ed), when it gets CPU-time - but if it hangs (waiting for an I/O e.g.) then it will not "notice" that it has been killed - and hence not die :-(
That's what you are experiencing, I guess.
Try a "ps -el | grep afscmrg" and look at the column "WCHAN" (wait-channel) - do they all wait for the same wait-channel? (i.e. the same event).
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2002 10:45 AM
07-19-2002 10:45 AM
Re: Kill Process !
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2002 11:01 AM
07-19-2002 11:01 AM
Re: Kill Process !
# ps -lu afscmrg
F S UID PID PPID C PRI NI ADDR SZ WCHAN TT
Y TIME COMD
1 S 608 26484 1 0 156 20 6b991200 0 50cbed30 ?
0:00 sh
1 S 608 9638 1 0 156 20 7b2f6800 0 83a31630 ?
0:00 sh
1 S 608 9093 1 0 156 20 c7dd3700 0 52231230 ?
0:00 sh
1 S 608 18625 1 0 156 20 67f96500 0 550df130 ?
0:00 sh
1 S 608 9315 1 0 156 20 64f72700 0 8a275130 ?
0:00 sh
1 S 608 1133 1 0 156 20 4bb74900 0 d1734530 ?
0:00 sh
1 S 608 29818 1 0 156 20 51d4b700 0 62af7f30 ?
0:00 sh
1 S 608 28921 1 0 156 20 af1f0800 0 9e873430 ?
0:00 sh
i probed all suggestions that you mentioned in my case, but nothing. I think that processes disapear in the next reboot of the server.
Best Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 07:57 AM
07-22-2002 07:57 AM
Re: Kill Process !
This tells the process to die with a core dump. This might help some. 'Orphan' processes (owned by pid 1), are often caused by people improperly exiting or terminating their sessions. Their parent dies, and, they attach themselves to init.