[Zope] import and setting tmp dir

John Hunter jdhunter@ace.bsd.uchicago.edu
Tue, 07 May 2002 09:39:40 -0500


>>>>> "Chris" == Chris McDonough <chrism@zope.com> writes:

    Chris> John, try strace ./start -t1 (single-threaded)

Hmm.  This doesn't seem to be working.  I still get no entries in the
strace output after the zope server startup message I referred to
previously. 

Ignoring strace for a moment, there seems to be a problem with the -t1
flag.  If I do a ps aux grepping for python processes, right after I
execute 
  > ./start -t1

I have two processes

mother:~> ps aux | grep /usr/local/bin/py
root     21016  0.4  0.7  5196 3620 pts/8    S    09:30   0:00 /usr/local/bin/py
nobody   21019 30.1  3.5 20272 18184 pts/8   S    09:30   0:23 /usr/local/bin/py
These are the two pids in var/Z2.pid

When I start the copy command form the zope manager interface, and
then do the ps, I get some new processes that look like threads:

mother:~> ps aux | grep /usr/local/bin/py
root     21016  0.3  0.7  5196 3620 pts/8    S    09:30   0:00 /usr/local/bin/py
nobody   21019 22.4  3.7 29376 19236 pts/8   S    09:30   0:23 /usr/local/bin/py
nobody   21084  0.0  3.7 29376 19236 pts/8   S    09:31   0:00 /usr/local/bin/py
nobody   21085 26.0  3.7 29376 19236 pts/8   D    09:31   0:04 /usr/local/bin/py

I have the same problem when I modify the start script to start zope
like:

exec /usr/local/bin/python2.1 \
     $INST_HOME/z2.py -t1 \
     -D "$@" 

Woe is me.  Should I be getting these extra processes with the t1
flag?  It looks to me like these extra process are why I am not
getting anything in the strace when I start the copy.

Gee, when you said using strace would be painful, you weren't kidding.
Thanks for you help; I'll eagerly try any further suggestions.

John Hunter