Re: RE: RE: graceful restart in WO5.2
Re: RE: RE: graceful restart in WO5.2
- Subject: Re: RE: RE: graceful restart in WO5.2
- From: email@hidden
- Date: Thu, 20 Nov 2003 01:03:20 +0500
- Priority: normal
Hi Pierre
That was my problem.Monitor was enabling refusenewsessions and my code was making
refusenewsessions false almost immediately.Once I rectified that graceful scheduling works just fine.
Thanks a lot
Regards
Aravind
----- Original Message -----
From: Pierre Bernard <email@hidden>
Date: Wednesday, November 19, 2003 9:55 pm
Subject: RE: RE: graceful restart in WO5.2
> Hi!
>
> This may indeed override the behavior of JavaMonitor. In fact
> JavaMonitor, WOTask that is, tells the application to refuse new
> sessions. The application sets its refuseNewSessions flag and from
> then on behaves accordingly provided that the flag remains set. The
> application kills itself once the number of sessions goes down to 0
> while the refuseNewSessions flag is set.
>
> For graceful restarting the application is not stopped by the
> WOTask. It is only told to stop refusing sessions. Termination is
> left up to the application.
>
> Make sure your code does not revert that flag, because otherwise
> your application will again accept session and will not die even if
> the number of active sessions goes down to 0.
>
> Pierre.
>
>
> --
> Got a hang for movies?
> http://homepage.mac.com/I_love_my/movies.html
>
> -----Original Message-----
> From: email@hidden [email@hidden]
> Sent: Wednesday, November 19, 2003 5:19 PM
> To: Pierre Bernard
> Subject: RE: RE: graceful restart in WO5.2
>
>
> Hi Pierre,
>
> I have a method in my app which checks if the instance is refusing
> new sessions and then enables( this.refuseNewSessions(false);) it
> on a specified condition.Could it be that this overrides the
> monitor....?
> If it is then how do I ensure that the graceful scheduling is not
> overridden by this.
>
> Frankly I badly need help
>
> Regards
> Aravind
>
> ----- Original Message -----
> From: Pierre Bernard <email@hidden>
> Date: Wednesday, November 19, 2003 7:57 pm
> Subject: RE: RE: graceful restart in WO5.2
>
> > Hi Aravind.
> >
> > Did you try "-DWODirectConnectEnabled=false", just in case? Did
> you
> > verify that the arguments don't contain 2 conflicting values for
> > WODirectConnectEnabled ?
> >
> > The behavior you are describing is eaxctly the one of an
> > application refusing to switch to the "refuse new sessions"
> state.
> > Does the monitor show the instance as refusing new sessions?
> >
> > There are hooks in WOApplication to check or influence this
> > behavior. You might want to su
> bclass WOApplication to override
> > methods like createSessionForRequest(), isRefusingNewSessions()
> or
> > refuseNewSessions() ta add some tracing.
> >
> > Pierre
> >
> > --
> > Got a hang for movies?
> > http://homepage.mac.com/I_love_my/movies.html
> >
> > -----Original Message-----
> > From: email@hidden [email@hidden]
> > Sent: Wednesday, November 19, 2003 3:15 PM
> > To: Pierre Bernard
> > Cc: email@hidden
> > Subject: Re: RE: graceful restart in WO5.2
> >
> >
> > Hi Pierre ,
> >
> > I've started the instances with "-WODirectConnectEnabled
> FALSE".So
> > thats covered.
> >
> > And as for sessions , the number of sessions become 0 if there
> are
> > no hits to the app - so there is no problem with the app as
> such.It
> > is just that monitor is not stopping accepting new sessions.If I
> > stop accessing the app then the number of sessions becomes 0 and
> > the app restarts at the next scheduled time....
> >
> > My problem is that graceful restart is not being forced by
> > javamonitor
> >
> >
> Regards
> > Aravind
> >
> > ----- Original Message -----
> > From: Pierre Bernard <email@hidden>
> > Date: Wednesday, November 19, 2003 7:35 pm
> > Subject: RE: graceful restart in WO5.2
> >
> > > Hi!
> > >
> > > I believe recent versions of WebObjects require direct connect
> to
> > > be OFF for graceful scheduling to work. Give it a try.
> > >
> > > If however the number of sessions never drops to 0, you
> probably
> > > have a more serious bug preventing your sessions from terminating.
> > >
> > > Pierre.
> > >
> > >
> > > --
> > > Got a hang for movies?
> > > http://
> > homepage.mac.com/I_love_my/movies.html
> > >
> > > -----Original Message-----
> > > From: email@hidden [email@hidden]
> > > Sent: Wednesday, November 19, 2003 2:39 PM
> > > To: email@hidden; webobjects-
> > email@hidden> Subject: graceful restart in WO5.2
> > >
> > >
> > > Hi All,
> > >
> > > Am facing this problem with graceful scheduling in WO 5.2
> > > JavaMonitor.The instances are not stopping accepting new sessio
> ns
> > > and the number of active sessions never becomes zero.So the
> > > instances never get recycled.
> > >
> > > Now the Monitor help says....
> > >
> > > Graceful Scheduling
> > > If an instance is gracefully scheduled, rather than shutting
> down
> > > immediately, it refuses new sessions.Existing sessions continue
> > as
> > > normal. Once the number of active sessions drops to the Minimum
> > > Active Session Count (typically 0), the instance is restarted.
> > >
> > >
> > > but this is not happening...
> > >
> > > So what am I doing wrong..?
> > >
> > > Regards
> > > Aravind
> > > _______________________________________________
> > > we
> > bobjects-dev mailing list | email@hidden
> > > Help/Unsubscribe/Archives:
> > > http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> > > Do not post admin requests to the list. They will be ignored.
> > >
> > >
> > >
> >
> **********************************************************************> This email and any files
transmitted with it are intended
> solely for
> > > the use of the individual or entity to whom they are addressed.
> > > If you have received this email in error please notify the
> sender
> > > of this message. (email@hidden)
> > > This email message has been checked for the presence of computer
> > > viruses; however this protection does not ensure this message is
> > > virus free.
> > > Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
> > >
> >
> **********************************************************************> > >
> >
> >
> >
> >
> **********************************************************************> This email and any files
transmitted with it are intended solely for
> > the use of the individual or entity to whom they are addressed.
> > If you have received this email in error please notify the sender
> > of this message. (email@hidden)
> > This email message has been checked for the presence of computer
> > viruses; however this protection does not ensure this message is
> > virus free.
> > Banq
> ue centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
> >
> **********************************************************************>
> >
>
>
>
> **********************************************************************
> This email and any files transmitted with it are intended solely for
> the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the sender
> of this message. (email@hidden)
> This email message has been checked for the presence of computer
> viruses; however this protection does not ensure this message is
> virus free.
> Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
> **********************************************************************
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.