wood burning stoves 2.0*
The moose likes Java in General and the fly likes ghost (hanging) processes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "ghost (hanging) processes" Watch "ghost (hanging) processes" New topic
Author

ghost (hanging) processes

gino mendoza
Greenhorn

Joined: Jul 12, 2002
Posts: 20
our web application name is apova
we have a cron job that runs a script. in the script we have:
/opt/java1.2/bin/java -XdoCloseWithReadPending -cp classpath..... program name
when we moved to 1.3, i.e., used this:
/opt/java1.3/bin/java -XdoCloseWithReadPending -cp classpath..... program name
we started noticing that processes seememd to be left hanging even though the job finished.
we run this command on the server:
ps -ef|grep java|grep apova
results look like:
apova 23442 23440 0 Nov 3 ? 0:00 /bin/sh /opt/www/corp/apova/java
/apova/WEB-INF/classes/chkal
apova 20847 20845 0 Nov 4 ? 0:06 /opt/java1.3/bin/../bin/PA_RISC2
.0/native_threads/java -XdoC
apova 14615 14612 0 Nov 3 ? 0:00 /bin/sh /opt/www/corp/apova/java
/apova/WEB-INF/classes/chkal
apova 23452 23451 0 Nov 3 ? 0:05 /opt/java1.3/bin/../bin/PA_RISC2
.0/native_threads/java -XdoC
apova 20828 1153 0 Nov 4 ? 0:00 sh -c /opt/www/corp/apova/java/a
pova/WEB-INF/classes/chkaler
apova 3623 1153 0 Nov 3 ? 0:00 sh -c /opt/www/corp/apova/java/a
pova/WEB-INF/classes/chkaler
apova 14627 14615 0 Nov 3 ? 0:00 /bin/sh /opt/www/corp/apova/java
/apova/WEB-INF/classes/alert
apova 20679 20675 0 Nov 3 ? 0:00 /bin/sh /opt/www/corp/apova/java
/apova/WEB-INF/classes/alert
apova 11538 11506 1 12:58:58 pts/tr 0:00 grep java
apova 1380 1376 0 Nov 4 ? 0:00 /bin/sh /opt/www/corp/apova/java
/apova/WEB-INF/classes/alert
apova 20674 1153 0 Nov 3 ? 0:00 sh -c /opt/www/corp/apova/java/a
pova/WEB-INF/classes/chkaler
apova 18790 1153 0 Nov 3 ? 0:00 sh -c /opt/www/corp/apova/java/a
pova/WEB-INF/classes/chkaler
apova 13994 1153 0 Nov 2 ? 0:00 sh -c /opt/www/corp/apova/java/a
pova/WEB-INF/classes/chkaler
apova 3656 3632 0 Nov 3 ? 0:00 /bin/sh /opt/www/corp/apova/java
/apova/WEB-INF/classes/alert
apova 14629 14627 0 Nov 3 ? 0:05 /opt/java1.3/bin/../bin/PA_RISC2
.0/native_threads/java -XdoC
apova 23451 23442 0 Nov 3 ? 0:00 /bin/sh /opt/www/corp/apova/java
/apova/WEB-INF/classes/alert
apova 3632 3623 0 Nov 3 ? 0:00 /bin/sh /opt/www/corp/apova/java
/apova/WEB-INF/classes/chkal
apova 3659 3656 0 Nov 3 ? 0:05 /opt/java1.3/bin/../bin/PA_RISC2
.0/native_threads/java -XdoC
apova 21402 21400 0 Nov 3 ? 0:00 /bin/sh /opt/www/corp/apova/java
/apova/WEB-INF/classes/chkal
apova 1381 1380 0 Nov 4 ? 0:05 /opt/java1.3/bin/../bin/PA_RISC2
.0/native_threads/java -XdoC

-------------------------------------
anyone know what that PA_RISC file is?
can anyone help?
our admin has had to manually kill those hanging processes.
Thanks
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Apparently your JNI calls are not releasing all of their resources when they are finalized.

Do you have all of the required patches installed??
Check for them at:
http://www.hp.com/products1/unix/java/java2/sdkrte1_3/downloads/index.html


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ghost (hanging) processes
 
Similar Threads
Identifying Java Processes on UNIX boxes
How to check, TOMCAT is running as welcome page not coming
identifying two java preocesses in UNIX
Multiple instances of java class
WAS UNIX Process names