Re: [Zope] Zope hangs when database takes too long to respond

2006-09-06 Thread Martijn Pieters
On 9/7/06, Maciej Wisniowski <[EMAIL PROTECTED]> wrote: > When zope "hangs" you may take a look at your console or > file to see what is the state of threads. Ergh.. I should have written that you'll see whether threads are waiting for database... If any thread does something different it won't

Re: [Zope] Need Help--urgently

2006-09-06 Thread Martijn Pieters
cpdm cadlab wrote: > Well sure it takes time to acquire etiquette for newcomer. I am stuck > but hopefully will solve it out. thanks a lot to both of you. See, the problem lies not with Zope in this case, but with general python programming and web programming. So all I can do is give you pointers

Re: [Zope] Zope hangs when database takes too long to respond

2006-09-06 Thread Maciej Wisniowski
When zope "hangs" you may take a look at your console or file to see what is the state of threads. Ergh.. I should have written that you'll see whether threads are waiting for database... If any thread does something different it won't be shown here. -- Maciej Wisniowski

Re: [Zope] Zope hangs when database takes too long to respond

2006-09-06 Thread Maciej Wisniowski
Besides DeadlockDebugger, is there a way to see just how many threads Zope is currently using ? What do you mean by 'currently using'? Zope instance always uses the number of threads you've specified in zope.conf. You may try 'ps -aux|grep zope' if you're on linux box. If you want to see w

Re: [Zope] Re: zope 3 invisibility

2006-09-06 Thread Carlos de la Guardia
Thanks for your responses. I can say from experience that even a barely known blog by an unheralded developer can attract some attention now and then and that blogs by leading developers of a given project, like Philipp's own blog, can be a very good source of news about an interesting project. Whi

Re: [Zope] custom_zodb.py

2006-09-06 Thread Paul Winkler
On Thu, Sep 07, 2006 at 09:24:34AM +0800, Sinang, Danny wrote: > > Per http://www.plope.com/Books/2_7Edition/MaintainingZope.stx#2-27 , it > still says write your own custom_zodb.py . > > Can you point me to the exact location ? Argh, I believe this means the book is still out of date on that p

RE: [Zope] custom_zodb.py

2006-09-06 Thread Sinang, Danny
Per http://www.plope.com/Books/2_7Edition/MaintainingZope.stx#2-27 , it still says write your own custom_zodb.py . Can you point me to the exact location ? Regards, Danny -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Winkler Sent: Thursday, Sept

Re: [Zope] custom_zodb.py

2006-09-06 Thread Paul Winkler
Unless you are using Zope 2.6, don't do that. For Zope 2.7 or later, see the 2.7 version of the book at plope.com. Some chapters were never updated from the 2.6 version but even so it's much improved. For zope 2.7 or later, what you want to do is now done by editing zope.conf. On Thu, Sep 07, 2

[Zope] custom_zodb.py

2006-09-06 Thread Sinang, Danny
In the Zope Book v2.6, it says :   "Each database connection maintains its own cache (see above, "Database Cache"), so bumping the number of connections up increases memory requirements. Only change this setting if you're sure you have the memory to spare. To change this setting, create a

RE: [Zope] Zope hangs when database takes too long to respond

2006-09-06 Thread Sinang, Danny
> Seems that all your Zope threads are busy (they're waiting for database response). There is no more threads to serve next requests so they're waiting (you may say that zope hangs in this situation, but in fact all it's threads are waiting for DB). You may install DeadlockDebugger product and you'

Re: Re: [Zope] Need Help--urgently

2006-09-06 Thread cpdm cadlab
  On Thu, 07 Sep 2006 David H wrote : >Martijn Pieters wrote: > >>cpdm cadlab wrote: >>  >>>  thanks for the quick reply. I am glad to be here on active ZOPE >>>mailing list. >>>    >> >>Let's keep it on the list then; no personal email please. >> >>  >>>  I had initially done the way you ha

Re: [Zope] Need Help--urgently

2006-09-06 Thread David H
Martijn Pieters wrote: cpdm cadlab wrote: thanks for the quick reply. I am glad to be here on active ZOPE mailing list. Let's keep it on the list then; no personal email please. I had initially done the way you have suggested, but it doesn't work in the se

Re: [Zope] Need Help--urgently

2006-09-06 Thread Martijn Pieters
cpdm cadlab wrote: > thanks for the quick reply. I am glad to be here on active ZOPE > mailing list. Let's keep it on the list then; no personal email please. > I had initially done the way you have suggested, but it doesn't work > in the sense I get a empty list as output, which I know isn't

[Zope] RE: Zope hangs when database takes too long to respond

2006-09-06 Thread Sinang, Danny
> It is a "known" limitation of Zope, which has a set number of "worker threads" available to service user requests. If a worker thread blocks (e.g., waiting for MySQL), it is not able to do any work for other pending requests. > You can tweak the number of threads in your zope.conf file, via t

Re: [Zope] Need Help--urgently

2006-09-06 Thread Jonathan
In your python script:   mlist = context.code(uparam)     In your external method:   def code(self, uparam):    mlist = []         return mlist     Simple!     hth   Jonathan     - Original Message - From: cpdm cadlab To: zope@zope.org Sent: Wednesday, September 06, 2

Re: [Zope] Need Help--urgently

2006-09-06 Thread Martijn Pieters
On 6 Sep 2006 22:27:14 -, cpdm cadlab <[EMAIL PROTECTED]> wrote: context.code(uparam) code is the id of external method which processes uparam and at the end has statement return mlist this mlist is what I am interested in getting back. I want external method to return me this list to m

[Zope] Need Help--urgently

2006-09-06 Thread cpdm cadlab
I am sure it should be trivial, but being newbee makes me shameless :)    What I am in need of is guideline about how to integrate python script and external python method.    I have a form through which I collect user input and forward it to a python script, which concatenates input in certain pat

Re: [Zope] Re: Zope hangs when database takes too long to respond

2006-09-06 Thread Jonathan
- Original Message - From: "Chris McDonough" <[EMAIL PROTECTED]> To: "Jonathan" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, September 06, 2006 6:01 PM Subject: Re: [Zope] Re: Zope hangs when database takes too long to respond On Sep 6, 2006, at 5:54 PM, Jonathan wrote: Well, by those

Re: [Zope] Re: Zope hangs when database takes too long to respond

2006-09-06 Thread Chris McDonough
On Sep 6, 2006, at 5:54 PM, Jonathan wrote: Well, by those standards, I propose he look at Delphi too... ;-) Do you mean he should consult the Oracle? ;-) Sure, why not, while he's at it? ;-) We can probably even haul in Interbase. P.S. I really was trying to be helpful Sure, I j

Re: [Zope] Re: Zope hangs when database takes too long to respond

2006-09-06 Thread Jonathan
- Original Message - From: "Chris McDonough" <[EMAIL PROTECTED]> To: "Jonathan" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, September 06, 2006 5:50 PM Subject: Re: [Zope] Re: Zope hangs when database takes too long to respond On Sep 6, 2006, at 5:47 PM, Jonathan wrote: Unless he wants

Re: [Zope] Re: Zope hangs when database takes too long to respond

2006-09-06 Thread Chris McDonough
On Sep 6, 2006, at 5:47 PM, Jonathan wrote: Unless he wants to rewrite his application, Twisted likely won't help, right? Twisted is, as i said "Another possible solution" - yes it will require work to integrate, but it is still a potential solution. I don't like to tell people what to

Re: [Zope] Re: Zope hangs when database takes too long to respond

2006-09-06 Thread Jonathan
- Original Message - From: "Chris McDonough" <[EMAIL PROTECTED]> To: "Jonathan" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, September 06, 2006 5:40 PM Subject: Re: [Zope] Re: Zope hangs when database takes too long to respond On Sep 6, 2006, at 5:30 PM, Jonathan wrote: Another possi

Re: [Zope] Re: Zope hangs when database takes too long to respond

2006-09-06 Thread Chris McDonough
On Sep 6, 2006, at 5:30 PM, Jonathan wrote: Another possible solution is to have a look at twisted: http://twistedmatrix.com/projects/core/documentation/howto/faq.html Unless he wants to rewrite his application, Twisted likely won't help, right? The OP may also want to see why his MySQL

Re: [Zope] Re: Zope hangs when database takes too long to respond

2006-09-06 Thread Jonathan
- Original Message - From: "Tres Seaver" <[EMAIL PROTECTED]> To: Sent: Wednesday, September 06, 2006 5:16 PM Subject: [Zope] Re: Zope hangs when database takes too long to respond -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sinang, Danny wrote: Sorry for the typo error. The su

[Zope] Re: Zope hangs when database takes too long to respond

2006-09-06 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sinang, Danny wrote: > Sorry for the typo error. > > The subject should read "hangs", not "hands" . > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Sinang, Danny > Sent: Wednesday, Septembe

Re: [Zope] Zope hangs when database takes too long to respond

2006-09-06 Thread Maciej Wisniowski
Whenever the MySQL server experiences heavy load, Zope seems to hang, such that we can't even access the ZMI. Is this a bug in version 2.7.6 or ZMySQLDA ? Seems that all your Zope threads are busy (they're waiting for database response). There is no more threads to serve next requests so th

Re: [Zope] Zope 2.9.3/2.9.1 On Suse 10.1 box version

2006-09-06 Thread Ofer Weisglass
I recompiled python from source and later did the right steps with the right promissions and now everything is working for me as well. Thanks ofer > Howdy-- > > I just ran into this same problem. After much poking around, it turned > out that the source of the problem was that the zlib module fo

[Zope] Re: Re: request.locale - do we have this in 2.9.4?

2006-09-06 Thread Rocky Burt
On Wed, 2006-06-09 at 13:52 +0200, Philipp von Weitershausen wrote: > That said, *if* we choose to go with such a configuration option, I > think it woudl probably be a good idea to have it disabled by default in > the first release and enabled in subsequent releases. That way > applications cou

RE: [Zope] Zope hangs when database takes too long to respond

2006-09-06 Thread Sinang, Danny
Sorry for the typo error.   The subject should read "hangs", not "hands" . From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sinang, DannySent: Wednesday, September 06, 2006 10:56 PMTo: zope@zope.orgSubject: [Zope] Zope hands when database takes too long to respond Hello,  

[Zope] Zope hands when database takes too long to respond

2006-09-06 Thread Sinang, Danny
Hello,   We wrote an application (on Zope v2.7.6-final) that queries a MySQL database via ZMySQLDA v2.0.8.   Whenever the MySQL server experiences heavy load, Zope seems to hang, such that we can't even access the ZMI.   Is this a bug in version 2.7.6 or ZMySQLDA ?   Or are there some sett

Re: [Zope] Re: request.locale - do we have this in 2.9.4?

2006-09-06 Thread Philipp von Weitershausen
Chris Withers wrote: Philipp von Weitershausen wrote: Practically, it will very rarely hinder you to add attributes (such as "locale") to the request. I think "locale" and "debug" are just common enough to be form variables. Funny, I've never used either in 6 years of zoping ;-) Me neither

Re: [Zope] Re: Hmm... Localizer or Localizer

2006-09-06 Thread Chris Withers
Peter Bengtsson wrote: You simply didn't read Five/doc/i18n.txt (http://codespeak.net/z3/five/i18n.html). Googling "five i18n" gives you that as a first hit. "RTFM" is all I can say here. Don't RTFM me! I've read that page and unless you have a PhD in physics and indept experience of Zope 3 is

Re: [Zope] Re: request.locale - do we have this in 2.9.4?

2006-09-06 Thread Chris Withers
Philipp von Weitershausen wrote: Practically, it will very rarely hinder you to add attributes (such as "locale") to the request. I think "locale" and "debug" are just common enough to be form variables. Funny, I've never used either in 6 years of zoping ;-) You'd be surprised (I was too). P

Re: [Zope] Can't stop Zope, machine hanging

2006-09-06 Thread Chris Withers
Andreas Jung wrote: This remark was just stupid. There is nothing with BSD except there are some known issues you need to consider when compiling Python (at least there were some issues in the past). Sorry, I disagree. Look back over the list archives, it seems common for people to have prob

Re: [Zope] Can't stop Zope, machine hanging

2006-09-06 Thread Ken Ara
Thank you, Dieter, for your valuable insights and information. I am forwarding this to my ISP. --- Dieter Maurer <[EMAIL PROTECTED]> wrote: > Ken Ara wrote at 2006-9-5 07:47 -0700: > >... > >Of immediate concern to me is whether I can do > >anything to prevent this happening again. From time > to

[Zope] Re: Problems starting ZEO with zeoctl

2006-09-06 Thread Ben
On 9/3/06, Tres Seaver <[EMAIL PROTECTED]> wrote: The permission needed here is for the "effective" user to write to the "ZEO control socket", which is normally in the 'etc' direcdtory of your instance home, and named 'zeo.zdsock'. Try changing 'zeo.conf' to put that file in your 'var' directory

Re: [Zope] Re: zope 3 invisibility

2006-09-06 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6 Sep 2006, at 11:11, Philipp von Weitershausen wrote: Interesting. I've always considered blogs to be fairly invisible since I have to go look for them, whereas for mailing lists I can sign up for things I'm interested in. Exactly. This is a

[Zope] Re: zope 3 invisibility

2006-09-06 Thread Philipp von Weitershausen
Jens Vagelpohl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6 Sep 2006, at 02:04, Fred Drake wrote: On 9/5/06, Carlos de la Guardia <[EMAIL PROTECTED]> wrote: I frequently blog about Zope, and recently posted a list of 10 reasons why I think Zope 3 is kind of invisible to the Pyth

Re: [Zope] zope 3 invisibility

2006-09-06 Thread Andreas Jung
--On 6. September 2006 10:31:51 +0200 Jens Vagelpohl <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6 Sep 2006, at 02:04, Fred Drake wrote: On 9/5/06, Carlos de la Guardia <[EMAIL PROTECTED]> wrote: I frequently blog about Zope, and recently posted a list of

Re: [Zope] zope 3 invisibility

2006-09-06 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6 Sep 2006, at 02:04, Fred Drake wrote: On 9/5/06, Carlos de la Guardia <[EMAIL PROTECTED]> wrote: I frequently blog about Zope, and recently posted a list of 10 reasons why I think Zope 3 is kind of invisible to the Python community (see my