Operating System - HP-UX
1834274 Members
1559 Online
110066 Solutions
New Discussion

Kill stuck process (java app)

 
pc123_1
Frequent Advisor

Kill stuck process (java app)

Hello.
Accidentally I ran awt demo that comes with hp-ux java development kit while being logged in in text mode. The system got stuck.
Could you help how to kill this process? I'm logged in as regular user.
8 REPLIES 8
U.SivaKumar_2
Honored Contributor

Re: Kill stuck process (java app)

Hi,
As that user
$su -
#ps -ef | grep awt
kill the processes.if not, reboot the system
#reboot
regards,
U.SivaKumar
Innovations are made when conventions are broken
Tim D Fulford
Honored Contributor

Re: Kill stuck process (java app)

I'm assuming you can log onto another session...

Collect the pids & ppids of the whole chain of commands you wish to kill.

e.g. pid 123 is the process you wish to kill

ps -fp 123 # look at the 3rd column and it will show the PPID.

repeat up & down the chain & note cmd:pid:ppid.

You should get back to the original "awt" command. Then

kill -15 # for all the pids you want to get rid of
ps -fp # make sure they have gone away
If they have not use a bigger hammer
kill -9

Tim
-
pc123_1
Frequent Advisor

Re: Kill stuck process (java app)

Thank you very much for replies. But the problem is that I started the process from local console. It got blocked. Then I tried to login remotely, from a LAN terminal using telnet, vt100 emulation, but I won't get login screen.
Had to do ugly reboot of the system (power off).
Tim D Fulford
Honored Contributor

Re: Kill stuck process (java app)

You ain't having much luck... Console problems, app problems...

Regards

Tim
-
pc123_1
Frequent Advisor

Re: Kill stuck process (java app)

It seems like there were no app and console problems when you started to work with hp for the first time. Otherwise I don't understand these words. Or is there a forum where I can ask simple questions?

In any case, thank you for your answers.
Tim D Fulford
Honored Contributor

Re: Kill stuck process (java app)

Anonymous
Not applicable

Re: Kill stuck process (java app)

You may want to ask your sysadmin
to check if the java requirements are met on this box.

http://www.hp.com/go/java
...
http://www.hp.com/products1/unix/java/infolibrary/patches.html
for recent recommendations.

BTW-lazy me-
show_patches > 1
F=1
cat java-req.txt |grep PH |sed 's/^.*\(PH.._[0-9]\{4,5\}\)[^0-9]*.*$/\1/g' |while read P
do
if grep -q "$P" $F
then echo .\\c
else echo "$P missing in $F ?"
fi
done

hth, tom.
pc123_1
Frequent Advisor

Re: Kill stuck process (java app)

Thank you for your repsonse.
I will run the script, and update you on results.