You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Joe Bohn <jo...@earthlink.net> on 2005/11/22 17:45:45 UTC

Server Shutdown & Reboot issues

The console currently has a task to shutdown or reboot the server.

Shutdown isn't a problem ... it just invokes kernel.shutdown() followed 
by a system exit.  (Although the visual results to the user are slightly 
different depending upon the configuration most likely because of 
differences of synchronous/asynchronous variations during shutdown).

However, for reboot it attempts to spawn a new thread and from that 
thread invoke kernel.shutdown() followed by an invocation of Daemon.main 
with no parameters.  And this doesn't work very well at all.

Should we invest the time now to resolve these problems?  I think the 
resolution of these problems could get a bit sticky and would continue 
to be fragile if we don't integrate capabilities directly into the 
kernel for restart.  It also makes me wonder if we should also provide a 
restart from the command line if we support it in the console.

The failures from the reboot vary according to the configuration.  I've 
only tried this with the default configuration, jetty only, and tomcat 
only ... but this is the results:

Jetty only
  - Gets an error while starting G-Bean 
"geronimo:type=NetworkService,name=EJB" and indicates it is in the 
failed state.  This was Caused by: java.net.BindException: Address 
already in use: JVM_Bind.  In the error log it looks like the port was 
4201.  However, the things (at least for the console) appear to work 
normally after the restart.

Tomcat only
  - Doesn't get any errors, but results in the JVM terminating without 
an attempt at restart.  I haven't tracked down yet who is doing the 
system exit but there isn't much in the log to indicate a failure.

Both Jetty & Tomcat (Jetty on 8080, Tomcat on 8090)
- Gets a whole bunch of error on restart - starting with the same error 
as Jetty only above plus numerous errors from Tomcat in BaseModelMBean, 
Registry, Connector, JkMain.  However, once again the console appears to 
function appropriately (of course it is running on Jetty).

Joe


-- 
Joe Bohn
joe.bohn@earthlink.net

"He is no fool who gives what he cannot keep, to gain what he cannot 
lose."   -- Jim Elliot

Re: Server Shutdown & Reboot issues

Posted by David Jencks <da...@yahoo.com>.
On Nov 22, 2005, at 2:59 PM, Joe Bohn wrote:

>
> Does anybody care?
>
> If not I'll just create a JIRA to remove the reboot capability and add 
> the patch.

Fine with me.  I think the way you describe of "rebooting" the server, 
while it "ought" to work fine, seems likely to run into mysterious 
problems and we are probably better off not claiming it works.

thanks
david jencks

>
>
> Joe Bohn wrote:
>> The console currently has a task to shutdown or reboot the server.
>> Shutdown isn't a problem ... it just invokes kernel.shutdown() 
>> followed by a system exit.  (Although the visual results to the user 
>> are slightly different depending upon the configuration most likely 
>> because of differences of synchronous/asynchronous variations during 
>> shutdown).
>> However, for reboot it attempts to spawn a new thread and from that 
>> thread invoke kernel.shutdown() followed by an invocation of 
>> Daemon.main with no parameters.  And this doesn't work very well at 
>> all.
>> Should we invest the time now to resolve these problems?  I think the 
>> resolution of these problems could get a bit sticky and would 
>> continue to be fragile if we don't integrate capabilities directly 
>> into the kernel for restart.  It also makes me wonder if we should 
>> also provide a restart from the command line if we support it in the 
>> console.
>> The failures from the reboot vary according to the configuration.  
>> I've only tried this with the default configuration, jetty only, and 
>> tomcat only ... but this is the results:
>> Jetty only
>>  - Gets an error while starting G-Bean 
>> "geronimo:type=NetworkService,name=EJB" and indicates it is in the 
>> failed state.  This was Caused by: java.net.BindException: Address 
>> already in use: JVM_Bind.  In the error log it looks like the port 
>> was 4201.  However, the things (at least for the console) appear to 
>> work normally after the restart.
>> Tomcat only
>>  - Doesn't get any errors, but results in the JVM terminating without 
>> an attempt at restart.  I haven't tracked down yet who is doing the 
>> system exit but there isn't much in the log to indicate a failure.
>> Both Jetty & Tomcat (Jetty on 8080, Tomcat on 8090)
>> - Gets a whole bunch of error on restart - starting with the same 
>> error as Jetty only above plus numerous errors from Tomcat in 
>> BaseModelMBean, Registry, Connector, JkMain.  However, once again the 
>> console appears to function appropriately (of course it is running on 
>> Jetty).
>> Joe
>
> -- 
> Joe Bohn
> joe.bohn@earthlink.net
>
> "He is no fool who gives what he cannot keep, to gain what he cannot 
> lose."   -- Jim Elliot
>


Re: Server Shutdown & Reboot issues

Posted by Dain Sundstrom <da...@iq80.com>.
If the feature is half baked or broken, let's just remove it.  If  
someone really wants this, they can add a feature request jira entry  
and hopefully a patch :)

-dain

On Nov 22, 2005, at 4:59 PM, Joe Bohn wrote:

>
> Does anybody care?
>
> If not I'll just create a JIRA to remove the reboot capability and  
> add the patch.
>
>
> Joe Bohn wrote:
>> The console currently has a task to shutdown or reboot the server.
>> Shutdown isn't a problem ... it just invokes kernel.shutdown()  
>> followed by a system exit.  (Although the visual results to the  
>> user are slightly different depending upon the configuration most  
>> likely because of differences of synchronous/asynchronous  
>> variations during shutdown).
>> However, for reboot it attempts to spawn a new thread and from  
>> that thread invoke kernel.shutdown() followed by an invocation of  
>> Daemon.main with no parameters.  And this doesn't work very well  
>> at all.
>> Should we invest the time now to resolve these problems?  I think  
>> the resolution of these problems could get a bit sticky and would  
>> continue to be fragile if we don't integrate capabilities directly  
>> into the kernel for restart.  It also makes me wonder if we should  
>> also provide a restart from the command line if we support it in  
>> the console.
>> The failures from the reboot vary according to the configuration.   
>> I've only tried this with the default configuration, jetty only,  
>> and tomcat only ... but this is the results:
>> Jetty only
>>  - Gets an error while starting G-Bean  
>> "geronimo:type=NetworkService,name=EJB" and indicates it is in the  
>> failed state.  This was Caused by: java.net.BindException: Address  
>> already in use: JVM_Bind.  In the error log it looks like the port  
>> was 4201.  However, the things (at least for the console) appear  
>> to work normally after the restart.
>> Tomcat only
>>  - Doesn't get any errors, but results in the JVM terminating  
>> without an attempt at restart.  I haven't tracked down yet who is  
>> doing the system exit but there isn't much in the log to indicate  
>> a failure.
>> Both Jetty & Tomcat (Jetty on 8080, Tomcat on 8090)
>> - Gets a whole bunch of error on restart - starting with the same  
>> error as Jetty only above plus numerous errors from Tomcat in  
>> BaseModelMBean, Registry, Connector, JkMain.  However, once again  
>> the console appears to function appropriately (of course it is  
>> running on Jetty).
>> Joe
>
> -- 
> Joe Bohn
> joe.bohn@earthlink.net
>
> "He is no fool who gives what he cannot keep, to gain what he  
> cannot lose."   -- Jim Elliot


Re: Server Shutdown & Reboot issues

Posted by Joe Bohn <jo...@earthlink.net>.
Does anybody care?

If not I'll just create a JIRA to remove the reboot capability and add 
the patch.


Joe Bohn wrote:
> 
> The console currently has a task to shutdown or reboot the server.
> 
> Shutdown isn't a problem ... it just invokes kernel.shutdown() followed 
> by a system exit.  (Although the visual results to the user are slightly 
> different depending upon the configuration most likely because of 
> differences of synchronous/asynchronous variations during shutdown).
> 
> However, for reboot it attempts to spawn a new thread and from that 
> thread invoke kernel.shutdown() followed by an invocation of Daemon.main 
> with no parameters.  And this doesn't work very well at all.
> 
> Should we invest the time now to resolve these problems?  I think the 
> resolution of these problems could get a bit sticky and would continue 
> to be fragile if we don't integrate capabilities directly into the 
> kernel for restart.  It also makes me wonder if we should also provide a 
> restart from the command line if we support it in the console.
> 
> The failures from the reboot vary according to the configuration.  I've 
> only tried this with the default configuration, jetty only, and tomcat 
> only ... but this is the results:
> 
> Jetty only
>  - Gets an error while starting G-Bean 
> "geronimo:type=NetworkService,name=EJB" and indicates it is in the 
> failed state.  This was Caused by: java.net.BindException: Address 
> already in use: JVM_Bind.  In the error log it looks like the port was 
> 4201.  However, the things (at least for the console) appear to work 
> normally after the restart.
> 
> Tomcat only
>  - Doesn't get any errors, but results in the JVM terminating without an 
> attempt at restart.  I haven't tracked down yet who is doing the system 
> exit but there isn't much in the log to indicate a failure.
> 
> Both Jetty & Tomcat (Jetty on 8080, Tomcat on 8090)
> - Gets a whole bunch of error on restart - starting with the same error 
> as Jetty only above plus numerous errors from Tomcat in BaseModelMBean, 
> Registry, Connector, JkMain.  However, once again the console appears to 
> function appropriately (of course it is running on Jetty).
> 
> Joe
> 
> 

-- 
Joe Bohn
joe.bohn@earthlink.net

"He is no fool who gives what he cannot keep, to gain what he cannot 
lose."   -- Jim Elliot