Operating System - HP-UX
1824149 Members
4484 Online
109668 Solutions
New Discussion юеВ

Unable to kill java process

 
SOLVED
Go to solution
GSK_2
Advisor

Unable to kill java process

I was unable to kill the java process (pid 12960). It was consuming 100% CPU and it does not have any child processes either. Can anyone of you suggest what can be done. I have pasted the top details below for information. Thanks in advance.

[root@HPNODE]/: ps -ef | grep 12960
apidsma1 12960 1 0 17:39:04 ? 198:08 /opt/java1.4/bin/IA64N/java -server -Xms64m -Xmx64m -classpath /opt/java1.4/lib:/opt/weblogic/weblogic81/server/lib/weblogic.ja
root 22867 22484 0 01:28:58 pts/tc 0:00 grep 12960
[root@HPNODE]/:
[root@HPNODE]/: kill -9 12960
[root@HPNODE]/: ps -ef | grep 12960
apidsma1 12960 1 0 17:39:04 ? 198:41 /opt/java1.4/bin/IA64N/java -server -Xms64m -Xmx64m -classpath /opt/java1.4/lib:/op
t/weblogic/weblogic81/server/lib/weblogic.ja
root 23262 22484 0 01:29:31 pts/tc 0:00 grep 12960
[root@HPNODE]/:
[root@HPNODE]/: kill -HUP 12960

[root@HPNODE]/: kill -9 12960
[root@HPNODE]/: ps -ef | grep 12960
apidsma1 12960 1 0 17:39:04 ? 200:17 /opt/java1.4/bin/IA64N/java -server -Xms64m -Xmx64m -classpath /opt/java1.4/lib:/op
t/weblogic/weblogic81/server/lib/weblogic.ja
root 24386 22484 0 01:31:08 pts/tc 0:00 grep 12960
[root@HPNODE]/:





System: HPNODE Tue Apr 4 01:31:58 2006
Load averages: 1.27, 1.27, 1.27
165 processes: 130 sleeping, 33 running, 2 zombies
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.02 1.8% 0.0% 8.0% 90.3% 0.0% 0.0% 0.0% 0.0%
1 0.02 1.4% 0.0% 1.2% 97.4% 0.0% 0.0% 0.0% 0.0%
2 0.02 1.8% 0.0% 1.4% 96.8% 0.0% 0.0% 0.0% 0.0%
3 5.00 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 1.27 1.2% 0.0% 27.6% 71.2% 0.0% 0.0% 0.0% 0.0%

Memory: 1458492K (1222320K) real, 2095272K (1745392K) virtual, 4323832K free Page# 1/11

CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
3 ? 12960 apidsma1 152 20 314M 139M run 201:08 100.17 100.00 java
2 ? 53 root 152 20 21600K 19200K run 68:03 4.01 4.00 vxfsd
0 ? 9135 apidsma1 152 20 885M 726M run 3:15 1.83 1.82 java
0 ? 1911 root 154 20 9192K 1060K sleep 17:04 1.78 1.78 kcmond
0 ? 22907 root -27 20 47408K 39588K run 29:49 0.34 0.34 cmcld
0 ? 1394 root 152 20 241M 60280K run 19:23 0.33 0.33 java
0 ? 1779 root 152 20 115M 19824K run 1:29 0.29 0.29 vxsvc
2 ? 1333 root 152 20 27848K 4268K run 0:26 0.20 0.20 rpcd
0 ? 4344 root 152 20 46380K 9732K run 0:44 0.20 0.20 opcctla
0 pts/tc 24447 root 178 20 10900K 1000K run 0:00 0.22 0.17 top
6 REPLIES 6
Arunvijai_4
Honored Contributor
Solution

Re: Unable to kill java process

Hi Satish,

PPID of 12960 (Java process) has some how became 1. You need to reboot the machine in order to kill the process.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Onur Karakan
Advisor

Re: Unable to kill java process

try this one.
killall java
Senthil Prabu.S_1
Trusted Contributor

Re: Unable to kill java process

Hi,
Do a reboot.

or try this way,

1. Login to the machine as apidsma1
2. Execute kill -9 -1.

This will kill all running process of the apidsma1 user.


HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Chan 007
Honored Contributor

Re: Unable to kill java process

Hi,

Please note that when you stop the java process you should be in the proper path, this will ensure that a clean stop of java process, as they require some LIB path.

to kill this process just try a kill -15 , this should get killed.

Chan
GSK_2
Advisor

Re: Unable to kill java process

Hi Guys,

Thanks for your suggestion. We finally had to reboot after trying all the above suggestions.

Regards,
Satish
Martin Sedlacek_4
New Member

Re: Unable to kill java process

Hi,
probably the process is waiting for i/o. In this case it becomes unkillable (has non-signalable priority). Be aware that this behavior could means badly coded (written) application. Use tusc for syscall trace to see what the given process is doing or what waiting for.
Regards
Martin