Pages

Friday, March 2, 2012

How to kill the CLOSE_WAIT sections on AIX

How to kill the CLOSE_WAIT sections on AIX

root@server #netstat -a | grep CLOSE
tcp4 104 0 server.49196 server.43787 CLOSE_WAIT
tcp4 104 0 server.49195 server.41383 CLOSE_WAIT

root@server #netstat -Aan | grep CLOSE
f10000f30cd08358 tcp4 104 0 162.87.218.139.491 162.87.218.139.437 CLOSE_WAIT
f10000f305e8fb58 tcp4 104 0 162.87.218.139.491 162.87.218.139.413 CLOSE_WAIT

root@server #rmsock f10000f30cd08358 tcpcb
socket 0xcd08000 is removed.

root@server #rmsock f10000f305e8fb58 tcpcb
socket 0x5e8f800 is removed.

root@server #netstat -a | grep CLOSE

pg  /var/adm/ras/rmsock.log
ps -eaf | grep -i exiting

1 comment:

  1. Good, but what happens with the process that's using the socket?

    ReplyDelete