Java application dying randomly

Hi,

(First post, please be gental!)

I have a java app that I am running on unix (centos)

But it keeps dying randomly. The times seem random from anything between 3 hours and 3 days.

I have a cronjob running to restart it when ever it dies but I would rather this happened less often.

Is there anyway to find out the reason why it died?

Thanks

Matt

hiya....
any core files laying around in / or /tmp or in the directory that holds the app ?
anything in /var/log/messages ?
have you checked all the filesystems for space (including /tmp)
also check on a regular basis what the memory usage is (top is useful for that)
also make sure your "restarting" script logs the time of day it restarts the app so you can cross-reference that with any other forensic info you find...

I hope this gives you some pointers...

hi,

thanks for the response.

It uses about 4% memory so that shouldn't be an issue.

There is nothing of use in any of those locations and the disk space is fine.

I will start logging the amount of restarts it needs though - that should be help.

Thanks
Matt