Startup of application hit and miss

Help
2012-05-03
2013-06-12
  • Huib Verweij
    Huib Verweij
    2012-05-03

    Hi,

    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.

    Regards,

    Huib.

     
  • rzo
    rzo
    2012-05-04

    hello,

    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.

    • Ron
     
  • Huib Verweij
    Huib Verweij
    2012-05-04

    Hi Ron,

    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!

    Huib.