[CentOS] CentOS 5.5 Java Process Death

Fri Feb 18 10:06:18 UTC 2011
Martin Hewitt <martin.hewitt at gmail.com>

On 18 February 2011 09:49, Michael Gliwinski
<Michael.Gliwinski at henderson-group.com> 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 process is closing when the
>> SSH window that started it closes?
> Try adding 'nohup' before 'java'.  Closing SSH session closes the shell which
> sends HUP to its children.

I've just discovered this command, and have added it to the invocation.

> But, it is not your main problem is it?  I mean the app wasn't always started
> manually from an interactive shell?

You know, I've been debugging this for so long that I just can't
remember. The processes are either started manually, or from a web
trigger, which could cause the same behaviour if/when the web server
worker thread is detroyed or renewed.

> --
> Michael Gliwinski
> Henderson Group Information Services
> 9-11 Hightown Avenue, Newtownabby, BT36 4RT
> Phone: 028 9034 3319
> **********************************************************************************************
> The information in this email is confidential and may be legally privileged.  It is intended solely for the addressee and access to the email by anyone else is unauthorised.
> If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
> When addressed to our clients, any opinions or advice contained in this e-mail are subject to the terms and conditions expressed  in the governing client engagement leter or contract.
> If you have received this email in error please notify support at henderson-group.com
> John Henderson (Holdings) Ltd
> Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, BT36 4RT.
> Registered in Northern Ireland
> Registration Number NI010588
> Vat No.: 814 6399 12
> *********************************************************************************
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos