[Zope] No more than two threads?

Phillip J. Eby pje@telecommunity.com
Thu, 23 Sep 1999 10:18:17 -0500


At 03:24 PM 9/23/99 +0100, Tony McDonald wrote:
>Hi,
>My start script is;
>
>#! /bin/sh
>reldir=`dirname $0`
>PYTHONHOME=`cd $reldir; pwd`
>export PYTHONHOME
>exec /home/Zope-2.0.0-solaris-2.6-sparc/bin/python \
>      $PYTHONHOME/z2.py -t 6 -p 'Zope.cgi' \
>#     -D "$@"
>         "$@"
>
>The Zope.cgi part works fine, as does the Zserver part (ie on port 8080).
>
>The thing is that if I  do
>% ps -ef | grep py
>
>I get,
>     nnle 17768 17767  0 12:57:37 ?        3:36 
>/home/Zope-2.0.0-solaris-2.6-sparc/bin/python /home/Zope-2.0.0-solari
>     nnle 17767     1  0 12:57:37 ?        0:00 
>/home/Zope-2.0.0-solaris-2.6-sparc/bin/python /home/Zope-2.0.0-solari
>     nnle 18963 18751  0 15:21:07 pts/10   0:00 grep py
>
>That means there's just two threads running, right?
>

No, that's two processes, not two threads.  You'll always see two
processes: one is the gatekeeper that restarts the main Zope process when
you do a 'restart' or when the main process fails with a fatal error.  The
other, larger process is the Zope main process, whose internal threads will
not be visible from a 'ps'.