Re: [Zope] RE: zope LDAP deadlock problem

2006-06-07 Thread Dieter Maurer
Matthew X. Economou wrote at 2006-6-6 14:44 -0400:
 ...
In short, no, Zope will consume all available CPU cycles after some amount of 
idle time, due to a threading-related flaw in Zope, GRUF, Plone, 
LDAPUserFolder, python-ldap, or OpenLDAP (I don't know which).

You can use Florent's DeadlockDebugger to find out what happens.



-- 
Dieter
___
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 )


RE: [Zope] RE: zope LDAP deadlock problem

2006-06-07 Thread Matthew X. Economou
 You can use Florent's DeadlockDebugger to find out what happens.

This is true for someone with the requisite skills and plenty of time.
In my case, the actual deadlock happens in a system library routine
(sigaction, as I recall), making the identification of the component
that's actually at fault rather challenging for someone like me.
Fortunately, something in FreeBSD's threading implementation must have
changed between RELENG_5 and RELENG_6, because Zope doesn't become
completely unresponsive now.

Best wishes,
Matthew

-- 
jsoffron: I'm generally pretty high on national defense...
Mr. Bad Example: Careful...it's a gateway policy. Before you know it,
 you'll be mainlining the hard stuff like trade agreements.
jsoffron: Too late...I've been freebasing Nafta all day... Sweet,
 sweet NAFTA.
- As seen on Slashdot
___
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 )


[Zope] RE: zope LDAP deadlock problem

2006-06-06 Thread Matthew X. Economou



(This is in regards to a post of mine from last year, i.e. http://mail.zope.org/pipermail/zope/2005-March/157400.html.)

Sir,

I received your email, but I am very sorry that I do not have time to reply in detail. In short, no, Zope will consume all available CPU cycles after some amount of idle time, due to a threading-relatedflaw in Zope, GRUF, Plone, LDAPUserFolder, python-ldap, or OpenLDAP (I don't know which). Lucky for me, upgrading from FreeBSD 5.4 to 6.1 reduced the severity of this problem. Under FreeBSD 6.1, Zope does not completely deadlock, and any web site access after Zope begins spinning will bring it out of this 100%-CPU state.

I don't have this problem on Zope/Plone servers running under Fedora Core 4/5, so I've considered switching to Linux.

Please note that I had to hack the FreeBSD ports tree in order to force it to use Python 2.3 with Zope 2.8. Email me privately for the details.

I will try to follow up with additional detail when I have time time.

Best wishes,
Matthew
___
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 )