RE: [Zope] Multithreading sessions

2008-06-04 Thread Jon Emmons
: Wednesday, May 28, 2008 2:27 PM To: Jon Emmons Cc: zope@zope.org Subject: Re: [Zope] Multithreading sessions Jon Emmons wrote at 2008-5-23 08:58 -0400: ... I am running zope 2.9.4 and have observed that it will not simultaneously serve pages to my users. Usually, it does. I have seen database

Re: RE: [Zope] Multithreading sessions

2008-06-04 Thread Carol Ludwig
backend does not register an active session between actual queries. That's open source.  Code terminology for re-write it. - Original Message - From: Jon Emmons [EMAIL PROTECTED] Date: Wednesday, June 4, 2008 8:50 Subject: RE: [Zope] Multithreading sessions To: 'Dieter Maurer' [EMAIL PROTECTED

RE: RE: [Zope] Multithreading sessions

2008-06-04 Thread Jon Emmons
not appear to exhibit this behavior. Jon Emmons _ From: Carol Ludwig [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 10:58 AM To: Jon Emmons Cc: 'Dieter Maurer'; zope@zope.org Subject: Re: RE: [Zope] Multithreading sessions We are using Plone and Zope against a legacy Ingres

RE: [Zope] Multithreading sessions

2008-06-04 Thread Dieter Maurer
Jon Emmons wrote at 2008-6-4 08:50 -0400: ... I am just learning about this, but my initial inquiries suggest that the only way to achieve true concurrency using a language like python is to launch multiple interpreters. This is true when you mean by true concurrency can keep a multi-CPU systems

RE: [Zope] Multithreading sessions

2008-06-04 Thread Jon Emmons
- From: Dieter Maurer [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 2:09 PM To: Jon Emmons Cc: zope@zope.org Subject: RE: [Zope] Multithreading sessions Jon Emmons wrote at 2008-6-4 08:50 -0400: ... I am just learning about this, but my initial inquiries suggest that the only way

Re: [Zope] Multithreading sessions

2008-06-04 Thread Jaroslav Lukesh
- Original Message - From: Dieter Maurer [EMAIL PROTECTED] Jon Emmons wrote at 2008-6-4 08:50 -0400: ... I am just learning about this, but my initial inquiries suggest that the only way to achieve true concurrency using a language like python is to launch multiple interpreters.

Re: [Zope] Multithreading sessions

2008-05-28 Thread Jon Emmons
Jens, Thanks for your input. Unfortunately, I am out of the office this week. When I return I will be trying to resolve this issue. I don't believe it has squat to do with my Database at all, so I will be setting up some scenarios where I am making simultaneous requests, requiring no DB

Re: [Zope] Multithreading sessions

2008-05-28 Thread Dieter Maurer
Jon Emmons wrote at 2008-5-23 08:58 -0400: ... I am running zope 2.9.4 and have observed that it will not simultaneously serve pages to my users. Usually, it does. I have seen database adapter packages (an old psycopg version, to be precise) that forgot to release the GIL for some operations.

Re: [Zope] Multithreading sessions

2008-05-23 Thread Andreas Jung
--On 23. Mai 2008 08:58:25 -0400 Jon Emmons [EMAIL PROTECTED] wrote: Is this typical Zope behavior? No, and it is unlikely that Zope is in charge for this behavior. You might encounter a situation where your database locks a table or something like that and therefore blocking other

RE: [Zope] Multithreading sessions

2008-05-23 Thread Jon Emmons
, May 23, 2008 9:10 AM To: Jon Emmons; zope@zope.org Subject: Re: [Zope] Multithreading sessions You need to increase number of server threads and/or number of database connections (it mean ZoDB connections). - Original Message - From: Jon Emmons User 1 requests data that takes the MySQL

Re: [Zope] Multithreading sessions

2008-05-23 Thread Jaroslav Lukesh
You need to increase number of server threads and/or number of database connections (it mean ZoDB connections). - Original Message - From: Jon Emmons User 1 requests data that takes the MySQL server 30 seconds to retrieve Meanwhile. User 2 wants to log on User 2 will not be served

RE: [Zope] Multithreading sessions

2008-05-23 Thread Jon Emmons
Emmons; zope@zope.org Subject: Re: [Zope] Multithreading sessions --On 23. Mai 2008 08:58:25 -0400 Jon Emmons [EMAIL PROTECTED] wrote: Is this typical Zope behavior? No, and it is unlikely that Zope is in charge for this behavior. You might encounter a situation where your database locks

Re: [Zope] Multithreading sessions

2008-05-23 Thread Jaroslav Lukesh
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

RE: [Zope] Multithreading sessions

2008-05-23 Thread Jon Emmons
Jaroslav, OK, that looks real! Thanks, I am going to try it on my development server and run some tests. Jon Emmons -Original Message- From: Jaroslav Lukesh [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 9:37 AM To: Jon Emmons; zope@zope.org Subject: Re: [Zope] Multithreading

RE: [Zope] Multithreading sessions

2008-05-23 Thread Jon Emmons
(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; zope@zope.org Subject: Re: [Zope] Multithreading sessions Hi Jon, I use 24 zserver

RE: [Zope] Multithreading sessions

2008-05-23 Thread Sours, Kevin
:[EMAIL PROTECTED] On Behalf Of Jon Emmons Sent: Friday, May 23, 2008 8:10 AM To: 'Jaroslav Lukesh'; zope@zope.org Subject: RE: [Zope] Multithreading sessions Jaroslav and everyone, I have made the changes Jaroslav suggested and I cannot get Zope to serve even 2 sessions simultaneously. In our testing

Re: [Zope] Multithreading sessions

2008-05-23 Thread Peter Sabaini
(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; zope@zope.org Subject: Re: [Zope] Multithreading sessions Hi Jon, I

Re: [Zope] Multithreading sessions

2008-05-23 Thread Manuel Vazquez Acosta
Sent: Friday, May 23, 2008 8:10 AM To: 'Jaroslav Lukesh'; zope@zope.org Subject: RE: [Zope] Multithreading sessions 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

RE: [Zope] Multithreading sessions

2008-05-23 Thread Jon Emmons
to what is happening, or a clear path to true multithreaded session handling. Jon Emmons -Original Message- From: Sours, Kevin [mailto:[EMAIL PROTECTED] Sent: Friday, May 23, 2008 11:48 AM To: Jon Emmons; zope@zope.org Subject: RE: [Zope] Multithreading sessions What it sounds like

Re: [Zope] Multithreading sessions

2008-05-23 Thread Jens Vagelpohl
On May 23, 2008, at 11:49 , Jon Emmons wrote: Another thought I had, is that Zope has only one python interpreter running, pretty much forcing all processing to be serial by default given what you've just said. Sorry, that's all baloney. Just like blindly hiking the number of threads or

RE: [Zope] Multithreading sessions

2008-05-23 Thread Sours, Kevin
This is relevant: http://docs.python.org/api/threads.html http://www.pyzine.com/Issue001/Section_Articles/article_ThreadingGlobalI nterpreter.html But notice some C extensions do allow concurrency by releasing the GIL. Most I/O operations in the standard library do that. And probably the

Re: [Zope] Multithreading sessions

2008-05-23 Thread Andreas Jung
--On 23. Mai 2008 12:31:50 -0500 Jens Vagelpohl [EMAIL PROTECTED] wrote: On May 23, 2008, at 11:49 , Jon Emmons wrote: Another thought I had, is that Zope has only one python interpreter running, pretty much forcing all processing to be serial by default given what you've just said.