On Friday 23 May 2008 17:09:49 Jon Emmons wrote: > Jaroslav and everyone, > > I have made the changes Jaroslav suggested and I cannot get Zope to serve > even 2 sessions simultaneously. > > In our testing, one client will start a query to the data servers. Another > will try to simply get the logon page to be served. Zope will simply sit > there and wait until the DB returns its results for the first user before > doing anything at all for the second. The 2nd user is not hitting the DB > server. The python script accessing the data is waiting for the results > for the first user. Could python be the problem?
I very much doubt it. Zope (and Python) can easily serve many concurrent sessions. You'll need to find out what exactly makes Zope hang and where it hangs. One option to do this is to attach with gdb to the Python process and figure it out from the backtrace. http://www.upfrontsystems.co.za/Members/jean/zope-notes/debug-spinning-zope talks about that a bit Another option is to use the Deadlock Debugger product (I haven't used that personally though): http://www.zope.org/Members/nuxeo/Products/DeadlockDebugger hth, peter. > I am running python 2.4.4. > > Is it possible that I missed a flag or something when I build the Zope? > > Thanks for your suggestions so far, but I think I have missed a fundamental > setup step that allows zope to multithread sessions. > > If I were echoing what was being served to the clients, shouldn't I see it > interwoven? I don't, it is always (client 1's results) then (client 2's > results)... very atomic. > > Thanks again, > > Jon Emmons > > > > -----Original Message----- > From: Jaroslav Lukesh [mailto:[EMAIL PROTECTED] > Sent: Friday, May 23, 2008 9:37 AM > To: Jon Emmons; email@example.com > Subject: Re: [Zope] Multithreading sessions > > Hi Jon, > > I use 24 zserver-threads and I have here defined number of ZoDB connections > (pool-size): > > in your instance etc/zope.conf look for that section: > > <zodb_db main> > # Main FileStorage database > <filestorage> > path $INSTANCE/var/Data.fs > </filestorage> > mount-point / > cache-size 1000 > pool-size 24 > </zodb_db> > > Please pay attention, if you have bunch of cache, your RAM shoul be > exhausted. > > Regards, JL. > > ----- Original Message ----- > From: "Jon Emmons" <[EMAIL PROTECTED]> > > > I had already gone into zope.conf and added the line: > > > > zserver-threads 10 > > > > This seemed to have no effect. Is that what you mean? > > You think I should bump it higher? 100 maybe? > > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev )
Description: This is a digitally signed message part.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )