- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- killing a 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
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
03-06-2003 09:02 PM
03-06-2003 09:02 PM
killing a process
Its a c program which is doing some select in database for some reason it needs to be killed. But doesn't appear to happen by kill -9
Any idea about stoping that process without rebooting the server
Thanks
rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 09:05 PM
03-06-2003 09:05 PM
Re: killing a process
If -9 doesn't do it, it's probably waiting on I/O. Find the process that's hung the I/O, kill it & the org process will die with it.
If you're lucky, you won't have to shutdown the DB.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 09:09 PM
03-06-2003 09:09 PM
Re: killing a process
The problem is that the parent process is "1" there is no process associated with it. And by looking at the logs of database i can see that it hasn't even started any query yet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 09:09 PM
03-06-2003 09:09 PM
Re: killing a process
killing the parent in this case is bad and illegal in all 50 states. hee hee.
There are other possible codes on the kill command.
kill -25 suspends the process which is almost as good as killing it. A sleeping process can't hurt anybody.
kill -9 is usually the last resort. For me, when that doesn't work its usually reboot time.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 09:13 PM
03-06-2003 09:13 PM
Re: killing a process
By the way all kill signals have been tested and none seems to be working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 09:33 PM
03-06-2003 09:33 PM
Re: killing a process
lsof -p pid
...say?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 09:48 PM
03-06-2003 09:48 PM
Re: killing a process
# /opt/lsof/bin/lsof -p 4179
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
au_wwwpu 4179 auwww cwd VDIR 255,0x2 2048 4307 /tmp_mnt/home/auwww
au_wwwpu 4179 auwww txt VREG 255,0x2 32768 17587 /tmp_mnt/home -- au_wwwpu
au_wwwpu 4179 auwww mem VREG 64,0x7 40960 109 /usr/lib/libnss_files.1
au_wwwpu 4179 auwww mem VREG 64,0x7 126976 24333 /usr/lib/libxti.2
au_wwwpu 4179 auwww mem VREG 64,0x7 679936 26326 /usr/lib/libnsl.1
au_wwwpu 4179 auwww mem VREG 64,0x7 40960 26890 /usr/lib/libnss_nis.1
au_wwwpu 4179 auwww mem VREG 64,0x2003b 2842624 3161 /mars_informix/lib/tools/lib4gsh730.sl
au_wwwpu 4179 auwww mem VREG 64,0x7 122880 1835 /usr/lib/libnsl_s.2
au_wwwpu 4179 auwww mem VREG 64,0x7 12288 698 /usr/lib/libisamstub.1
au_wwwpu 4179 auwww mem VREG 64,0x7 1241088 684 /usr/lib/libcl.2
au_wwwpu 4179 auwww mem VREG 64,0x7 282624 22679 /usr/lib/libm.2
au_wwwpu 4179 auwww mem VREG 64,0x7 143360 111 /usr/lib/libsec.2
au_wwwpu 4179 auwww mem VREG 64,0x7 335872 8818 /usr/lib/libcur_colr.1
au_wwwpu 4179 auwww mem VREG 64,0x7 24576 21322 /usr/lib/libdld.2
au_wwwpu 4179 auwww mem VREG 64,0x7 1552384 25162 /usr/lib/libc.2
au_wwwpu 4179 auwww mem VREG 64,0x7 159744 21320 /usr/lib/dld.sl
au_wwwpu 4179 auwww mem VREG 64,0x8 532 15947 /var/spool/pwgr/status
au_wwwpu 4179 auwww 0r VCHR 3,0x2 0t0 66 /dev/null
au_wwwpu 4179 auwww 1w VREG 64,0x6 30903 242 /tmp/auwww.cron
au_wwwpu 4179 auwww 2w VREG 64,0x6 30903 242 /tmp/auwww.cron
au_wwwpu 4179 auwww 3u VREG 255,0x2 0 17987 /tmp_mnt/home -- mutex
au_wwwpu 4179 auwww 4u unix 0x4c092800 0t0 /var/spool/sockets/pwgr/client4179
au_wwwpu 4179 auwww 5u inet 0x4f7d8668 0t0 TCP mars:58901->mars:csm_service (CLOSE_WAIT)
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 09:55 PM
03-06-2003 09:55 PM
Re: killing a process
The real killer though and the one that's probably a problem, is likely to be that /tmp_mnt "fella". Is there a NFS or other network association there?
I'm concerned about the dld.sl entries. Those usually aren't good. (* Dynamic Link Loader. *)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 10:05 PM
03-06-2003 10:05 PM
Re: killing a process
You said to kill the /var/spool pid's but the problem is how? coz all these process have same PID..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 10:08 PM
03-06-2003 10:08 PM
Re: killing a process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 10:11 PM
03-06-2003 10:11 PM
Re: killing a process
/var/spool/sockets/pwgr/client4179
but after removing this i have seen it gets created.
Rest all files are application file which cant be removed ( i mean its the program file and its home directory which is NFS mounted)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 10:48 PM
03-06-2003 10:48 PM
Re: killing a process
nfsstat -s
(* if readlink calls on same magnitude as lookup calls then symbolic links frenquently traversed - Remove symbolic links *)
nfsstat -rc
(*If timeout and retrans values high and badxid is near zero then packets are dropped - Increase timeout *)
nfsstat -rc
(*timeouts and retrans similar then client RPC requests time out - Increase timeout in /etc/rc.config.d/nfsconf *)
netstat -m
(* IF # of requests for memory denied high then server doesn't have enough memory *)
netstat -s -p udp
(* high socket overflows then need mord nfsd daemons *)
sar -u 5 5
%idle = 0? cpu bottleneck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2003 11:04 PM
03-06-2003 11:04 PM
Re: killing a process
take a look at this line
au_wwwpu 4179 auwww 5u inet 0x4f7d8668 0t0 TCP mars:58901->mars:csm_service (CLOSE_WAIT)
This process has a connection from mars port 58901 to mars port csm_service (you can see the portnumber in /etc/services)
try:
lsof | grep csm_service
maybe you get something like this:
mars:csm_service-->mars:58901
with another PID
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2003 03:44 AM
03-07-2003 03:44 AM
Re: killing a process
I had a problem with a process hanging on the socket. SIGKILL didn't help. However SIGALRM did.
Good luck
Adam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2003 03:48 AM
03-07-2003 03:48 AM
Re: killing a process
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2003 04:15 AM
03-07-2003 04:15 AM
Re: killing a process
But until that time, it will simply sit there since the kernel has done all it can to tell the program to go away. Datacomm and network connections are the most common sources for processes that hang and can't be killed with kill -9.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2003 05:38 AM
03-07-2003 05:38 AM