Java application dying randomly


 
Thread Tools Search this Thread
Top Forums Programming Java application dying randomly
# 1  
Old 01-24-2011
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
# 2  
Old 01-24-2011
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...
# 3  
Old 01-24-2011
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
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Solaris

Java Application slowness with Xmanager

Hi! I have a m3000 server with solaris 10. Clients connecting to server using Xmanager. But when they open a Java based application its very slow and some times hanging. But when I tried with VNC it works fine. Is this a BUG in Xmanager? Or Is there any method to solve this? Thanks, Charith (3 Replies)
Discussion started by: charith.upendra
3 Replies

2. Programming

First Java Application

Hello all, This is my first java application since college (years ago..) What it basically needs to do, is verify that it can connect to a server, and once it is connected, run a series of AIX commands to verify that certain processes are running, and if they aren't running, it needs to start... (1 Reply)
Discussion started by: jeffs42885
1 Replies

3. UNIX and Linux Applications

sun java application server 8.2

i had a confusion on the installed directory of my application server a. if I create a domain w/o putting in directory, the domain automatically goes to /var/appserver/domains directory. I need it to be under /opt/SUNWappserver/domains.. If I will include this in domain creation, may logs are... (0 Replies)
Discussion started by: lhareigh890
0 Replies

4. Solaris

Java application getting killed automatically in Solaris

Hi to all, I have developed a Java application for Solaris 10. I am uing JDK 5. But it is getting killed after some time. And at the terminal, I got message as Killed. I am new to Solaris. Can anybody help me? (3 Replies)
Discussion started by: ashish.nijai
3 Replies

5. Filesystems, Disks and Memory

java application holds lot of disk space

Hi, I am running a java application in unix box to process 20000 files. Each file sizes around 300 bytes. Application keep polls the input folder and moves to the respective output folders. The disk partition sizes 5GB. df -k shows only 900 mb free while running the application. When I stop the... (0 Replies)
Discussion started by: balajilinks
0 Replies
Login or Register to Ask a Question