|
From: Leif M. <le...@ta...> - 2007-04-03 08:54:41
|
Hubert,
Thanks for pointing this out. The behavior of replacing the
remaining timeout with the
new one was historical. In the first versions of the Wrapper, the
internal timeouts were
not nearly so configurable and the application took much more control of
the startup
and shutdown of the JVM.
The way the Wrapper is now used however, this no longer makes any
sense. It is
only the way it still because I had not given it any thought.
I have modified both the signalStarting and signalStopping methods
so they will
now attempt to set a new timeout "millis" milliseconds in the future.
If the existing
timeout is already longer then the new timeout will be ignored. Ie, it
will only have
any meaning if the result will be to extend the timeout.
This is checked in to SVN and will be in the next release.
Cheers,
Leif
Hubert Felber wrote:
> Ben,
>
> Just an assumption:
> check the comment on
> http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html
> on the bottom of the site, about
> WrapperManager.signalStarting(int millis) and
> WrapperManager.signalStopping(int millis).
>
> I noticed the following:
> Calling WrapperManager.signalStopping(1000); I expected that the value
> is added to the TimeToWait defined in the conf file. But it seams that
> it is not added but replaced. This is the new time to wait. And if you
> call it on Windows with value 1000, it causes or can cause a quite
> immediate exit.
>
> Perhaps your problems have something to do with this.
>
> hth
> Hubert
>
> btw
>
> on the bottom of the mentioned site you read:
>
> <BTW Great Job Leif!
>
> Yes, indeed!
>
>
>
>>>> "Ben Cox" <ple...@ho...> 30.03.2007 22:37 >>>
>>>>
> Hi all,
>
> I've been using Wrapper version 3.2.3 to manage my service on a Windows
> 2003
> Server machine. Everything is working rather well, except occasionally
> when
> requesting a restart from within the app (and sometimes just during a
> "normal" restart after an error). What will happen is that the wrapper
> will
> attempt to start my app and then give up and terminate the JVM within
> _one_
> second!
>
> At least, that's how it looks from the timestamps on the log output
> (below)... am I missing (or misinterpreting) a config file setting?
>
> Thanks,
>
> Ben
>
>
> STATUS | wrapper | 2007/03/20 15:48:27 | JVM requested a restart.
>
> STATUS | wrapper | 2007/03/20 15:48:34 | Launching a JVM...
>
> INFO | jvm 17 | 2007/03/20 15:48:34 | Wrapper (Version 3.2.3)
> http://wrapper.tanukisoftware.org
>
> INFO | jvm 17 | 2007/03/20 15:48:34 | Copyright 1999-2006 Tanuki
>
> Software, Inc. All Rights Reserved.
>
> INFO | jvm 17 | 2007/03/20 15:48:34 |
>
> ERROR | wrapper | 2007/03/20 15:48:34 | Unable to send the start
> command
> to the JVM.
>
> ERROR | wrapper | 2007/03/20 15:48:34 | JVM did not exit on request,
>
> terminated
>
> STATUS | wrapper | 2007/03/20 15:48:39 | Launching a JVM...
>
> INFO | jvm 18 | 2007/03/20 15:48:40 | Wrapper (Version 3.2.3)
> http://wrapper.tanukisoftware.org
>
> INFO | jvm 18 | 2007/03/20 15:48:40 | Copyright 1999-2006 Tanuki
>
> Software, Inc. All Rights Reserved.
>
> INFO | jvm 18 | 2007/03/20 15:48:40 |
>
> ERROR | wrapper | 2007/03/20 15:48:40 | Unable to send the start
> command
> to the JVM.
>
> ERROR | wrapper | 2007/03/20 15:48:40 | JVM did not exit on request,
>
> terminated
>
> STATUS | wrapper | 2007/03/20 15:48:45 | Launching a JVM...
>
> INFO | jvm 19 | 2007/03/20 15:48:45 | Wrapper (Version 3.2.3)
> http://wrapper.tanukisoftware.org
>
> INFO | jvm 19 | 2007/03/20 15:48:45 | Copyright 1999-2006 Tanuki
>
> Software, Inc. All Rights Reserved.
>
> INFO | jvm 19 | 2007/03/20 15:48:45 |
>
> ERROR | wrapper | 2007/03/20 15:48:45 | Unable to send the start
> command
> to the JVM.
>
> ERROR | wrapper | 2007/03/20 15:48:46 | JVM did not exit on request,
>
> terminated
>
> STATUS | wrapper | 2007/03/20 15:48:51 | Launching a JVM...
>
> INFO | jvm 20 | 2007/03/20 15:48:51 | Wrapper (Version 3.2.3)
> http://wrapper.tanukisoftware.org
>
> INFO | jvm 20 | 2007/03/20 15:48:51 | Copyright 1999-2006 Tanuki
>
> Software, Inc. All Rights Reserved.
>
> INFO | jvm 20 | 2007/03/20 15:48:51 |
>
> ERROR | wrapper | 2007/03/20 15:48:51 | Unable to send the start
> command
> to the JVM.
>
> ERROR | wrapper | 2007/03/20 15:48:51 | JVM did not exit on request,
>
> terminated
>
> STATUS | wrapper | 2007/03/20 15:48:56 | Launching a JVM...
>
> INFO | jvm 21 | 2007/03/20 15:48:57 | Wrapper (Version 3.2.3)
> http://wrapper.tanukisoftware.org
>
> INFO | jvm 21 | 2007/03/20 15:48:57 | Copyright 1999-2006 Tanuki
>
> Software, Inc. All Rights Reserved.
>
> INFO | jvm 21 | 2007/03/20 15:48:57 |
>
> ERROR | wrapper | 2007/03/20 15:48:57 | Unable to send the start
> command
> to the JVM.
>
> ERROR | wrapper | 2007/03/20 15:48:57 | JVM did not exit on request,
>
> terminated
>
> FATAL | wrapper | 2007/03/20 15:48:57 | There were 5 failed launches
> in a
> row, each lasting less than 300 seconds. Giving up.
>
> FATAL | wrapper | 2007/03/20 15:48:57 | There may be a
> configuration
> problem: please check the logs.
>
> STATUS | wrapper | 2007/03/20 15:48:58 | <-- Wrapper Stopped
>
> _________________________________________________________________
> Watch free concerts with Pink, Rod Stewart, Oasis and more. Visit MSN
> Presents today.
> http://music.msn.com/presents?icid=ncmsnpresentstagline&ocid=T002MSN03A07001
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
|