Forcefully disconnect a user/kill a process?
Posted: Tue Nov 08, 2005 11:47 am
What is the best way to forcefully disconnect/terminate a user process?
kill -15, then kill -9 on user processes? Just shutdown the server and wait for tcp_finwait2 time? I have tcp_finwait set at 60 so after 30 seconds AIX will terminate the network connections and the service can be restarted. You seem to be able to validate that the connections are gone by running
netstat -a | grep "$(hostname)\.dsrpc"
and that the service is down by running:
netstat -a | grep "\*\.dsrpc"
ps -ef | grep dsrpc
After all that, onto the issue.
Occassionally, a windows client will hang and will have to be terminated (on windows). This will sometimes leave a dsapi_slave 7 6 0 process running on the server using an entire CPU. That is, the process is using 100% of one cpu. This process will never stop. The client has closed their connection, yet the process is still running. I even let these processes run for several days and they still did not stop. Is it safe to kill these processes? Is there a better method?
Thanks.
kill -15, then kill -9 on user processes? Just shutdown the server and wait for tcp_finwait2 time? I have tcp_finwait set at 60 so after 30 seconds AIX will terminate the network connections and the service can be restarted. You seem to be able to validate that the connections are gone by running
netstat -a | grep "$(hostname)\.dsrpc"
and that the service is down by running:
netstat -a | grep "\*\.dsrpc"
ps -ef | grep dsrpc
After all that, onto the issue.
Occassionally, a windows client will hang and will have to be terminated (on windows). This will sometimes leave a dsapi_slave 7 6 0 process running on the server using an entire CPU. That is, the process is using 100% of one cpu. This process will never stop. The client has closed their connection, yet the process is still running. I even let these processes run for several days and they still did not stop. Is it safe to kill these processes? Is there a better method?
Thanks.