App Server continuous respawning

Hi,

I'm testing out the application server install and auto restart functionality on my Linux box. I've set the system up as per the Admin manual with a line in /etc/inittab telling the app to respawn, which it does succesfully. Unfortunately the application server takes so long to start up the domain (~1 minute) that the init program thinks it's crashed before it's had chance to start and so attempts to start another instance. This process is then repeated ad infinitum as each instance takes longer than init is prepared to wait until the too many respawns threshold is reached and it waits for five minutes before starting again.

This results in and average level of 3 1/2 appserver processes active at all times (1 actually running successfully and 2 1/2 failing as the original one is fully running by now) which is obviously undesirable and a pointless waste of resources. Does anyone know how I can get round this so that I can be confident that the appserver will restart if it is killed/crashes, but won't behave in the way it is doing at the moment - currently it's been respawning all night.?

Ta

Keith

[1153 byte] By [KeithRalphs] at [2007-11-26 6:35:04]
# 1

This is unfortunately a known problem with App server 8.x.

Please see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6242761

The problem is that asadmin (the script that inittab entry mentions) exits after starting the app server process (which does not exit) and hence asadmin start-domain is respawn causing an endless loop.

A workaround for domain/node-agent (in case of EE) could be as follows:

- use the --verbose flag on asadmin start-domain/start-node-agent

- redirect the stdout of this command to something (/dev/null) is OK.

Thanks,

AK/Kedar

kedarmhaswade at 2007-7-6 14:37:36 > top of Java-index,Application & Integration Servers,Application Servers...