Ben,
This is not a failure mode that I have seen before. At the point you are
getting the error message, the Wrapper has succeeded in launching the JVM,
the WrapperManager class in the JVM has initialized and opened a connection
back to the Wrapper process, sending its access key. The Wrapper then
responds by sending a START packed to the, JVM telling it it is time to
start
its application.
The sending of this START packet is failing for some reason. This would be
the first packet that the Wrapper attempts to send to JVM. Reviewing the
source, there is only 1 possible error at this point in the lifecycle.
That is a
failure at the socket level sending the packet. If you could reproduce this
with the wrapper.debug=true property set, I would be able to tell what the
exact failure is.
What does your system look like when this starts happening? Are you
under high load, low on resources or memory? This could happen if the
JVM process was crashing at exactly that moment. I am only guessing at
this point and will need more information.
Cheers,
Leif
Ben Cox wrote:
>> 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
|