Java App Stopped by OS

My Java app running on Linux seems to be stopped by the OS after around a day or so. There're no indication in my app's logs that it met a fatal error and quit by itself. Incidentally, my Java app is usually started from PHP, i.e. "exec".

Is there a reason to know why the OS kills the Java app process? Is there a way for the Java app (or JRE) to intercept the OS' signal?

[396 byte] By [wekion] at [2007-9-30 7:20:37]
# 1

You sure it's not something in your app. If you are running while a file exists in /tmp - it could get cleared up by a cron job - or the cron may go an deliberately kill any processes which have run for >1 day.

Google for java signal handling - there is some ueful stuff on an IBM web site

EvilEdna at 2007-7-1 23:50:30 > top of Java-index,Archived Forums,Java Programming...