[Zope] Troubleshooting Zope 100% CPU utilization

Matthew X. Economou xenophon at irtnog.org
Thu Mar 10 07:43:20 EST 2005


Paul,

Thank you for your suggestions.  Even with the trace log enabled, I do
not see a pattern, although I am now able to pinpoint when Zope begins
spinning.  I also did the Google search, which prompted me to attach to
the Zope instance with GDB.  (I should have thought of that sooner.)
While it doesn't list any threads, GDB gives me the following backtrace:

(gdb) bt
#0  0x00000001601bd320 in _get_curthread () from /usr/lib/libc_r.so.5
#1  0x00000001601c1be4 in _thread_leave_cancellation_point () from
/usr/lib/libc_r.so.5
#2  0x00000001601b70e8 in select () from /usr/lib/libc_r.so.5
#3  0x0000000160ca4644 in ldap_int_select () from
/usr/local/lib/libldap_r-2.2.so.7
#4  0x0000000160c8c9a4 in wait4msg () from
/usr/local/lib/libldap_r-2.2.so.7
#5  0x0000000160c8c440 in ldap_result () from
/usr/local/lib/libldap_r-2.2.so.7
#6  0x0000000160c5ce50 in l_ldap_result2 () from
/usr/local/lib/python2.3/site-packages/_ldap.so
#7  0x00000001200cf9ac in PyCFunction_Call ()
#8  0x00000001200186f4 in PyObject_Call ()
#9  0x0000000120080228 in PyEval_GetFuncDesc ()
#10 0x000000012007c7a8 in PyEval_EvalCode ()
#11 0x000000012007dcb8 in PyEval_EvalCodeEx ()

I happen to be using LDAPUserFolders 2.5beta2 and python-ldap 2.0.6.
What confuses me is the fact that I am running the same versions of
these two modules on the old Zope server (a PC-based server from which I
migrated).  I may try rebuilding Python with a larger thread stack, but
a few more Google searches are in order.

As always, any additional suggestions are welcome.  Thanks again for all
of your help.

Best wishes,
Matthew

-- 
"The challenge of a moral life is to do nothing that requires
forgiveness."  - Roger Ebert in his review of _The Woodsman_


More information about the Zope mailing list