Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-21 Thread Martin Hewitt
After 3 days of continual operation ( I barely managed 9hrs before ) it seems I have narrowed this down to the saddeningly basic cause of the process being sent the SIGHUP signal when its owner process dies. Using the nohup prefix solves the problem. Thanks for all the help on this everyone! Mar

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-18 Thread Anthony
On 18/02/11 20:49, Michael Gliwinski wrote: > > Try adding 'nohup' before 'java'. Closing SSH session closes the shell which > sends HUP to its children. I religiously use 'screen' when logging in remotely to do any work. Not only has saved me from interrupted work the connection breaks, but i

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-18 Thread m . roth
Martin Hewitt wrote: > It's strange how one can wake up and suddenly notice a pattern... > > Looking through the straces, and the disconnect timestamps of the SSH > sessions, it seems that the processes are dying as soon as, or shortly > after the SSH session is closed. > > My command is something

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-18 Thread Martin Hewitt
On 18 February 2011 09:49, Michael Gliwinski wrote: > On Friday 18 Feb 2011 09:53:39 Martin Hewitt wrote: >> My command is something along the lines of: >> >> java -cp /path/to/shared/libs/*:/path/to/class/directory/ >> path.to.MyApp > out.log 2>&1 & >> >> Does anyone have an idea as to why this p

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-18 Thread Michael Gliwinski
On Friday 18 Feb 2011 09:53:39 Martin Hewitt wrote: > My command is something along the lines of: > > java -cp /path/to/shared/libs/*:/path/to/class/directory/ > path.to.MyApp > out.log 2>&1 & > > Does anyone have an idea as to why this process is closing when the > SSH window that started it clo

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-18 Thread Martin Hewitt
It's strange how one can wake up and suddenly notice a pattern... Looking through the straces, and the disconnect timestamps of the SSH sessions, it seems that the processes are dying as soon as, or shortly after the SSH session is closed. My command is something along the lines of: java -cp /pa

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-18 Thread Martin Hewitt
Hi Cameron, On 18 February 2011 04:33, Cameron Kerr wrote: > > On 17/02/2011, at 9:35 PM, Mathieu Baudier wrote: > >>> I've been running our apps as purely as I can (java -cp >>> /path/to/libs/* path.to.the.App) and they're still being send SIGHUP >>> signals for reasons I can't understand. >> >

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-17 Thread Cameron Kerr
On 17/02/2011, at 9:35 PM, Mathieu Baudier wrote: >> I've been running our apps as purely as I can (java -cp >> /path/to/libs/* path.to.the.App) and they're still being send SIGHUP >> signals for reasons I can't understand. > I have only started in this thread, but your description of unexplain

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-17 Thread Mathieu Baudier
> I've been running our apps as purely as I can (java -cp > /path/to/libs/* path.to.the.App) and they're still being send SIGHUP > signals for reasons I can't understand. So, to sum you have tried: - with various classloading approaches - various JVMs - on various systems I must say that I'm real

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-17 Thread Martin Hewitt
On 14 February 2011 12:17, Mathieu Baudier wrote: >> When I package a "Runnable JAR" using the Eclipse Export wizard, in >> the manifest file, the main-class is given as >> org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader, which I presume >> is a little bit of code to redirect the main method

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-14 Thread Martin Hewitt
Hi Mathieu, On 14 Feb 2011, at 12:17, Mathieu Baudier wrote: >> When I package a "Runnable JAR" using the Eclipse Export wizard, in >> the manifest file, the main-class is given as >> org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader, which I presume >> is a little bit of code to redirect the

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-14 Thread Mathieu Baudier
> When I package a "Runnable JAR" using the Eclipse Export wizard, in > the manifest file, the main-class is given as > org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader, which I presume > is a little bit of code to redirect the main method to the main method > of my actual application. This is

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-14 Thread Martin Hewitt
Hi Mathieu, > Can you please give more details about this "additional" code? How did > you find out? When I package a "Runnable JAR" using the Eclipse Export wizard, in the manifest file, the main-class is given as org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader, which I presume is a little

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-14 Thread Mathieu Baudier
> I added in as many try...catch blocks as I could and got no useful > output, but it occurred to me that the Eclipse loader is adding in > another level of code between my application and the kernel. Can you please give more details about this "additional" code? How did you find out? Do you mean

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-14 Thread Martin Hewitt
Hi Mark, Over the weekend I've been testing the environment under various circumstances, and it seems that the kill issue is not confined to one app - it's afflicting all jars I've packaged with Eclipse. I added in as many try...catch blocks as I could and got no useful output, but it occurred to

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-11 Thread Keith Roberts
On Fri, 11 Feb 2011, Martin Hewitt wrote: > To: CentOS mailing list > From: Martin Hewitt > Subject: Re: [CentOS] CentOS 5.5 Java Process Death > > Hi Keith, > > Interesting idea, I've built the Sun SDK on one server, > and left the yum-installed version on the o

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-11 Thread m . roth
Martin Hewitt wrote: > Hi Mark, > > I've exhausted the Java avenues for debugging this issue, but, since > my last email, the process I pointed strace at has been killed, but > I'm afraid the rather raw format of the strace file is lost on me. > The last six lines of the ouput file are: > > clone(c

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-11 Thread Martin Hewitt
at 07:05, Keith Roberts wrote: > On Fri, 11 Feb 2011, Martin Hewitt wrote: > >> To: CentOS mailing list >> From: Martin Hewitt >> Subject: Re: [CentOS] CentOS 5.5 Java Process Death >> Hi Mark, >> >> I've exhausted the Java avenues for debugging

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-10 Thread Keith Roberts
On Fri, 11 Feb 2011, Martin Hewitt wrote: To: CentOS mailing list From: Martin Hewitt Subject: Re: [CentOS] CentOS 5.5 Java Process Death Hi Mark, I've exhausted the Java avenues for debugging this issue, but, since my last email, the process I pointed strace at has been killed, bu

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-10 Thread Martin Hewitt
Hi Mark, I've exhausted the Java avenues for debugging this issue, but, since my last email, the process I pointed strace at has been killed, but I'm afraid the rather raw format of the strace file is lost on me. The last six lines of the ouput file are: clone(child_stack=0x4202a250, flags=CLONE_

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-10 Thread m . roth
Hey, Martin, Martin Hewitt wrote: > > Thanks, I didn't know about the strace command, so that's useful. > Fortunately, this is on a dedicated server, so there's a fair amount > of free disk. If you can do the code changes (and the try/catch is *supposed* to be in there, according to java style),

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-10 Thread m . roth
Hey, Martin, Martin Hewitt wrote: > > Thanks, I didn't know about the strace command, so that's useful. > Fortunately, this is on a dedicated server, so there's a fair amount > of free disk. If you can do the code changes (and the try/catch is *supposed* to be in there, according to java style),

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-10 Thread Martin Hewitt
Hi Mark, Thanks, I didn't know about the strace command, so that's useful. Fortunately, this is on a dedicated server, so there's a fair amount of free disk. I've also remembered that one server was previously running CentOS 5.4, so I'm rebuilding the mirror server with 5.4 to see if that made a

Re: [CentOS] CentOS 5.5 Java Process Death

2011-02-10 Thread m . roth
Martin Hewitt wrote: > Hi all, > > I'm running CentOS 5.5 Final, Java version "1.6.0_17" OpenJDK Runtime > Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-x86_64) OpenJDK 64-Bit > Server VM (build 14.0-b16, mixed mode) installed via Yum. > > We have a java application, packaged as a jar, running on

[CentOS] CentOS 5.5 Java Process Death

2011-02-10 Thread Martin Hewitt
Hi all, I'm running CentOS 5.5 Final, Java version "1.6.0_17" OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-x86_64) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) installed via Yum. We have a java application, packaged as a jar, running on our servers which, periodically,