• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ghost (hanging) processes

 
gino mendoza
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic