Not able to kill a process


 
Thread Tools Search this Thread
Operating Systems Solaris Not able to kill a process
# 1  
Old 11-09-2014
Not able to kill a process

There is backup client software on Solaris-10. I wanted to restart that application, but one of PID is not getting killed even with -9. Can I try some more things before restarting server.
Code:
root@pdvtil03:/# ps -ealf | grep -i 6177
 0 S     root 28101 10844   0  50 20        ?    220        ? 12:17:50 pts/1       0:00 grep -i 6177
 0 S     root  6177     1   0  40 20        ?  56311        ? 22:00:13 ?           0:39 /opt/simpana/iDataAgent/ifind -j 40
root@pdvtil03:/# ps -Al | grep -i 6177
 0 S      0  6177     1   0  40 20        ?  56311        ? ?           0:39 ifind
root@pdvtil03:/# kill -9 6177
root@pdvtil03:/# echo $?
0
root@pdvtil03:/# ps -ealf | grep -i 6177
 0 S     root 29062 10844   0  50 20        ?    220        ? 12:18:20 pts/1       0:00 grep -i 6177
 0 S     root  6177     1   0  40 20        ?  56311        ? 22:00:13 ?           0:39 /opt/simpana/iDataAgent/ifind -j 40
root@pdvtil03:/#

# 2  
Old 11-09-2014
try to check with ptree -pid see if other process is holding that process..
# 3  
Old 11-09-2014
Code:
root@pdvtil03:/# ptree 6177
6177  /opt/simpana/iDataAgent/ifind -j 4016161 -a 2:6905 -t 2 -d ctpddnas13.webapp
root@pdvtil03:/#

# 4  
Old 11-09-2014
Are you seeing any hardware errors logged on the system console? Being resistant to SIGKILL signals usually indicates that the process is hung in a non-restartable system call that is waiting for an interrupt that would (under normal circumstances) usually occur quickly.
# 5  
Old 11-09-2014
Don, I have seen any hardware errors on this server as well on console. I have seen uninterrupted state for pid (when it goes in D state), which I had to reboot.
# 6  
Old 11-09-2014
Please get used to ps -fp 6177!
Besides ptree 6177 the command lsof -p 6177 gives information about resourses. (Please download/compile lsof if not present.)
# 7  
Old 11-09-2014
Seems like some issue on this server. I didn't not knew full path of lsof, so I tried finding it. Now I am not able to kill 2807 also. Here is another output.
Code:
root@pdvtil03:/# find / -name lsof
^C
^C^C

From another terminal
Code:
root@pdvtil03:/root# ps -ef | grep -i find
    root  2807 12503   0 13:20:55 pts/1       0:00 find / -name lsof
    root 18399 17487   0 13:27:53 pts/2       0:00 grep -i find
    root 25152     1   0 03:44:22 ?           0:39 /opt/simpana/iDataAgent/ifind -j 4016161 -a 2:6905 -t 2 -d ctpddnas13.webapp
    root 21595     1   0 01:15:35 ?           0:39 /opt/simpana/iDataAgent/ifind -j 4016161 -a 2:6905 -t 2 -d ctpddnas13.webapp
    root  6177     1   0 22:00:13 ?           0:39 /opt/simpana/iDataAgent/ifind -j 4016161 -a 2:6905 -t 2 -d ctpddnas13.webapp
root@pdvtil03:/root#
root@pdvtil03:/# ps -fp 6177
     UID   PID  PPID   C    STIME TTY         TIME CMD
    root  6177     1   0 22:00:13 ?           0:39 /opt/simpana/iDataAgent/ifind -j 4016161 -a 2:6905 -t 2 -d ctpddnas13.webapp
root@pdvtil03:/# ptree 6177
6177  /opt/simpana/iDataAgent/ifind -j 4016161 -a 2:6905 -t 2 -d ctpddnas13.webapp
root@pdvtil03:/#

It was going on and on, so I have to kill it.
Code:
root@pdvtil03:/# /usr/local/bin/lsof -p 6177
lsof: WARNING: bad section count line in /root/.lsof_pdvtil03: line "4 sections, dev=16b00000000"
lsof: WARNING -- child process 14488 may be hung.
lsof: WARNING -- child process 15836 may be hung.
lsof: WARNING -- child process 17049 may be hung.
lsof: WARNING -- child process 17647 may be hung.
lsof: WARNING -- child process 18291 may be hung.
lsof: WARNING -- child process 19373 may be hung.
lsof: WARNING -- child process 20323 may be hung.
lsof: WARNING -- child process 22133 may be hung.
lsof: WARNING -- child process 23402 may be hung.
lsof: WARNING -- child process 24067 may be hung.
lsof: WARNING -- child process 28478 may be hung.
^C
root@pdvtil03:/#

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Kill an specific process ID using the KILL and GREP commands

Good afternoon I need to KILL a process in a single command sentence, for example: kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'` That sentence Kills the process ID corresponding to the program CAL255.4ge. However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies

2. Solaris

Cannot kill a process with kill -9

Hello everyone, I have a process that I want to kill. I have tried kill-9 PID but it doesn't work. I have tried preap PID but it doesn't work too. The parent of my process is the process whose PID is 1, so I can't kill it. My OS is a Solaris 9. Can anyone help me understand what's going... (3 Replies)
Discussion started by: adilyos
3 Replies

3. UNIX for Dummies Questions & Answers

Script to start background process and then kill process

What I need to learn is how to use a script that launches background processes, and then kills those processes as needed. The script successfully launches the script. But how do I check to see if the job exists before I kill it? I know my problem is mostly failure to understand parameter... (4 Replies)
Discussion started by: holocene
4 Replies

4. Shell Programming and Scripting

grep the process id and kill all the filtered process

Hi I want to write a shell script which can find the process id's of all the process and kill them eg: ps ax | grep rv_ 3015 ? S 0:00 /home/vivek/Desktop/rv_server 3020 ? S 0:00 /home/vivek/Desktop/rv_gps 3022 ? S 0:00 /home/vivek/Desktop/rv_show ... (7 Replies)
Discussion started by: vivek_naragund
7 Replies

5. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

6. Linux

Kill a process without using kill command

I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Discussion started by: sudhamacs
6 Replies

7. Shell Programming and Scripting

Kill a process without using kill command

Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies

8. Programming

kill(0,-9) don't kill the process

Hi all i have simple c program , when i wish to kill the app im using kill(0,-9) , but it seams this command don't do any thing and the program. just ignore it . what im doing wrong here ? im using HP-UX ia64 Thanks (9 Replies)
Discussion started by: umen
9 Replies

9. Shell Programming and Scripting

how to start a process and make it sleep for 5 mins and then kill that process

how to start a process and make it sleep for 5 mins and then kill that process (6 Replies)
Discussion started by: shrao
6 Replies

10. UNIX for Advanced & Expert Users

When kill doesnt work, how to kill a process ?

Hi All, I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages. How can i terminate this daemon ? ? ? Regards, Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies
Login or Register to Ask a Question