- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- I can´t kill 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
10-27-2006 05:09 AM
10-27-2006 05:09 AM
I can´t kill a process
thuxwas0:/opt/jboss4.0.2/server/Sigma/log# netstat -an | grep 8380
tcp 0 0 10.250.0.71.8380 10.250.0.71.53013 CLOSE_WAIT
tcp 0 0 *.8380 *.* LISTEN
tcp 0 0 10.250.0.71.53013 10.250.0.71.8380 FIN_WAIT_2
I do´t know what i have to do to kill the process. The 10.250.0.71 ip is the server ip. It's a HPUX 11.11.
Regards, RIcardo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 05:18 AM
10-27-2006 05:18 AM
Re: I can´t kill a process
If a process won't terminate using a 'kill -9' then it is in kernel code waiting on an event. A process waiting to complete an I/O is an example of one such situation.
You can try killing the parent process.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 05:45 AM
10-27-2006 05:45 AM
Re: I can´t kill a process
If the ppid is 1 (init), the process is an orphan. You will have to reboot to get rid of it.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 05:58 AM
10-27-2006 05:58 AM
Re: I can´t kill a process
If there is not way to kill it, then the only solution is the reboot, schedule a down time and you are done. Also if you can not schedule it, and is consumen a lot of your resources, reniceing the process also helps.
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 08:44 AM
10-27-2006 08:44 AM
Re: I can´t kill a process
ndd -get /dev/tcp tcp_status | grep (the ip or port #)
ndd -set /dev/tcp tcp_discon (the hex address)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 09:36 AM
10-27-2006 09:36 AM
Re: I can´t kill a process
I tried with ndd -get /dev/tcp an I just obtain "operation failed, Invalid argument" as result. When I execute lsof -i | grep 8380 (the port) I don´t get anything as result. Can you help me?
Regards
Ricardo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2006 10:13 AM
10-27-2006 10:13 AM
Re: I can´t kill a process
Use caution when running this and make sure you have the correct port.
did you run the;
# ndd -get /dev/tcp tcp_status | grep 10.250.000.071
0000000048dbc868 010.250.000.071 971b7b36 971b7b36 000043ec 000132d0 4a2798a4 4a2798a4 00008000 00500 01460 [359c,7f9] TCP_ESTABLISHED
0x48dbc868 in this case is the hex you need.
You can disconnect by;
# ndd -set /dev/tcp tcp_discon 0x48dbc868
If you can't run the ndd -get /dev/tcp tcp_status command, it may have to do with too many user connections open.
Hope that this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2006 05:05 AM
10-28-2006 05:05 AM
Re: I can´t kill a process
@@@@@@@@@@@@@
#!/bin/ksh
# Hewlett-Packard Corporation
# This script is UNSUPPORTED. Use at own risk.
# @(#)$Revision: 1.3 $ $Author: scotty $ $Date: 98/08/25 17:55:01 $
#
# This script will query the system for any TCP connections that
# are in the FIN_WAIT_2 state and forcibly disconnect them. It
# uses netstat(1) to find the FIN_WAIT_2 connections and calls
# ndd with the correct hexidecimal representation of the connection
# to close the connection.
#
#
# Temporary files used to compare netstat output
#
MYSCRIPTNAME=${0##*/}
TMPFILE1=/var/tmp/$MYSCRIPTNAME.1
TMPFILE2=/var/tmp/$MYSCRIPTNAME.2
#
# Create a log file to keep track of connection that were removed
#
LOGFILE=/var/adm/$MYSCRIPTNAME.log
function getFinWait2 {
/usr/bin/printf "%.2x%.2x%.2x%.2x%.4x%.2x%.2x%.2x%.2x%.4x\n" \
$(/usr/bin/netstat -an -f inet | /usr/bin/grep FIN_WAIT_2 | \
/usr/bin/awk '{print $4,$5}' | /usr/bin/sed 's/\./ /g') > $TMPFILE1
}
function compareFinWait2 {
FIRST_TIME=1
cp $TMPFILE1 $TMPFILE2
getFinWait2
comm -12 $TMPFILE1 $TMPFILE2 | \
while read CONN
do
if [[ $CONN != "000000000000000000000000" ]]
then
if [ $FIRST_TIME -eq 1 ]
then
print >> $LOGFILE
date >> $LOGFILE
FIRST_TIME=0
fi
print "/usr/bin/ndd -set /dev/tcp tcp_discon_by_addr \"$CONN\""
>> $LOGFILE
/usr/bin/ndd -set /dev/tcp tcp_discon_by_addr $CONN
fi
done
getFinWait2
}
#
# Main
#
touch $TMPFILE1
touch $TMPFILE2
compareFinWait2
@@@@@@@@@@@@@
Matthew From Boston