Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java daemon thread dying

843811Apr 30 2004 — edited May 9 2004
Hi All,

I have a java daemon thread that seems to die randomly (on SunOS 5.6 JDK140.01). There are no exceptions thrown and there are no core dumps created by the JVM. Basically the thread sits in a while(true) loop waiting for files to exist in a certain directory so even if it wasn't a daemon thread I would expect it to stay alive. It doesn't die while processing a file nor does it die after a certain time of not processing any files.

If anyone knows a cleaner/safer way of waiting for files other than a while(true) loop or if anyone has an idea about why the process maybe dying, i will be most gratefull.

Cheers
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 6 2004
Added on Apr 30 2004
7 comments
490 views