RE: [Zope] Zope - long running process
On Sat, 12 Aug 2000, bak @ kedai wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of J. > > Atwood > > > > There is a switch in z2.py that allows you to point to a PID file. It will > > automatically restart your Zope installation once it goes down (if). > > i've tried this, with 2.1.x and 2.2.0; but i'm not sure it works well. > there are times when my zope hangs, and i need to stop and start manually. > it may be my programming. not too sure though. what are others experience? Under the unix source install, running with the monitor process active is the default (if you remove the -D from the z2 startup command line). I run this way with several sites, under both FreeBSD and Linux. It successfully restarts zope if it dies. In certain unusual circumstances, though, Zope will go into a spin where the python process consumes all available CPU and Zope stops responding. The monitor won't catch that. (Someone wrote a script that will; search the archives). In my experience this happens, in 2.1.x, when certain conditions are met by the DTML source code of referenced methods. I'm not sure what the exact conditions are, though I seem to recall they had to do with leading whitespace and dtml code only at the start of the method. I think this bug was fixed in 2.2. It *is* also possible to get Zope/python to spin through programming bugs. --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Zope - long running process
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of J. > Atwood > Sent: Saturday, August 12, 2000 1:04 AM > To: [EMAIL PROTECTED] > Subject: Re: [Zope] Zope - long running process > > > There is a switch in z2.py that allows you to point to a PID file. It will > automatically restart your Zope installation once it goes down (if). > > Like so... (start script) > > ___ > #! /bin/sh > reldir=`dirname $0` > PYTHONHOME=`cd $reldir; pwd` > export PYTHONHOME > exec /usr/local/zope/bin/python \ > $PYTHONHOME/z2.py \ > -w80 -Z /usr/local/zope/var/Z2.pid "$@" > > ___ > > It is the -Z /usr/local/zope/var/Z2.pid part. > > Do a more on your z2.py and check out all the options. i've tried this, with 2.1.x and 2.2.0; but i'm not sure it works well. there are times when my zope hangs, and i need to stop and start manually. it may be my programming. not too sure though. what are others experience? > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope - long running process
There is a switch in z2.py that allows you to point to a PID file. It will automatically restart your Zope installation once it goes down (if). Like so... (start script) ___ #! /bin/sh reldir=`dirname $0` PYTHONHOME=`cd $reldir; pwd` export PYTHONHOME exec /usr/local/zope/bin/python \ $PYTHONHOME/z2.py \ -w80 -Z /usr/local/zope/var/Z2.pid "$@" ___ It is the -Z /usr/local/zope/var/Z2.pid part. Do a more on your z2.py and check out all the options. J > From: George <[EMAIL PROTECTED]> > Organization: OK Studio > Date: Sat, 12 Aug 2000 01:10:53 +1000 > To: [EMAIL PROTECTED] > Subject: [Zope] Zope - long running process > > Could someone please explain how to make sure ZOPE does not stop working > and if it does then it restarts again? My platform is FreeBSD 4.0 > -stable. Do I use CRON ? Do I turn the debug option off to detach ZOPE > from the terminal it was started from? > > Regards, > George > [EMAIL PROTECTED] > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope - long running process
Could someone please explain how to make sure ZOPE does not stop working and if it does then it restarts again? My platform is FreeBSD 4.0 -stable. Do I use CRON ? Do I turn the debug option off to detach ZOPE from the terminal it was started from? Regards, George [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )