No more than two threads?
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? Anyone got any ideas? Tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
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'.
On Thu, Sep 23, 1999 at 03:24:52PM +0100, Tony McDonald wrote:
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, it's just one :) (the control process and ZServer). The rest will be started when the first request comes in. -Petru
At 16:24 23/09/99 , 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, it means there are two processes running; one for the ZDaemon (that monitors your Zope), and the other is the Zope process itself. Threads run within one process. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
On Thu, 23 Sep 1999, Tony McDonald wrote:
That means there's just two threads running, right?
Right! But try to access your Zope server with several browsers and more threads will be spawned. Thilo -- mezger@innominate.de innominate AG networking people fon: +49.30.308806-11 fax: -77 web: http://innominate.de pgp: /pgp/tm
participants (5)
-
Martijn Pieters -
Petru Paler -
Phillip J. Eby -
Thilo Mezger -
Tony McDonald