we have trouble starting our wrapped application reliably.
We have a RedHat Enterprise 6.1 (x86_64) machine and are using yajsw-stable-11.-01.
The wrapper sometimes launches the application successfully, but most of the times it fails. Out of 10 times it will start up the app successfully maybe once or twice. When it fails, often we see two wrapper processes! The second one has the pid of the application, according to the log file.
Needless to say, using "/sbin/service app stop" is useless when it fails and we have to kill the wrapper process by hand when that happens.
We have about 4 or 5 services that need to be started and we can't predict which service will run and which service will fail.
Any help will be much appreciated.
try setting the configuration property:
wrapper.fork_hack = true
pls let me know if this helped.
before restarting make sure that all java processes are killed.
that worked, I added the "wrapper.fork_hack=true" line and rebooted. The process started just fine. I tried starting and stopping it a few times and it worked every time.
Thanks very much!