Re: [Zope] Zope hangs in FreeBSD with plenty of memory and CPU resources

2007-02-26 Thread alex
Hmmm...unfortunately, that's not the cause of the problem (I'm 
responding since I'm on the East coast, Jean is on the West, and he's 
asleep right now):


[EMAIL PROTECTED]: ~$ python
Python 2.4.3 (#2, Jul  2 2006, 16:14:54)
[GCC 3.4.2 [FreeBSD] 20040728] on freebsd5
Type help, copyright, credits or license for more information.

import sys
sys.getrecursionlimit()

1000

Though I do appreciate you forwarding that URL along, because a *lot* 
of people have suggested the Python stack issue, and until now, we've 
been unable to definitively rule that out. It's almost as good to clear 
one problem as the potential cause as it is to fix things. :-)


Alex Kirk


http://plone.org/documentation/faq/plone-on-bsd-python-stack

Stefan


On 26. Feb 2007, at 06:06, Jean Lagarde wrote:


All,

As a coincidence, that hang of Zope I mentioned in a message I posted
yesterday has happened again today (second time), after a planned
reboot. So here is a completely different issue from the memory one
we've been discussing today.


--
Anything that, in happening, causes something else to happen,
causes something else to happen.  --Douglas Adams


___
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 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] Zope hangs in FreeBSD with plenty of memory and CPU resources

2007-02-26 Thread Jean Lagarde

My understanding is that get/setrecursionlimit is for the python
internal limit and is not an indicator of the THREAD_STACK_SIZE value,
but in any case, yes, we have compiled with that option and I don't
think that these would be the symptoms I would see for a stack size
issue anyway, but thanks for the suggestion!

-- Jean

On 2/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hmmm...unfortunately, that's not the cause of the problem (I'm
responding since I'm on the East coast, Jean is on the West, and he's
asleep right now):

[EMAIL PROTECTED]: ~$ python
Python 2.4.3 (#2, Jul  2 2006, 16:14:54)
[GCC 3.4.2 [FreeBSD] 20040728] on freebsd5
Type help, copyright, credits or license for more information.
 import sys
 sys.getrecursionlimit()
1000

Though I do appreciate you forwarding that URL along, because a *lot*
of people have suggested the Python stack issue, and until now, we've
been unable to definitively rule that out. It's almost as good to clear
one problem as the potential cause as it is to fix things. :-)

Alex Kirk

 http://plone.org/documentation/faq/plone-on-bsd-python-stack

 Stefan


 On 26. Feb 2007, at 06:06, Jean Lagarde wrote:

 All,

 As a coincidence, that hang of Zope I mentioned in a message I posted
 yesterday has happened again today (second time), after a planned
 reboot. So here is a completely different issue from the memory one
 we've been discussing today.

 --
 Anything that, in happening, causes something else to happen,
 causes something else to happen.  --Douglas Adams


 ___
 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 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 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] Zope hangs in FreeBSD with plenty of memory and CPU resources

2007-02-25 Thread Jean Lagarde

All,

As a coincidence, that hang of Zope I mentioned in a message I posted
yesterday has happened again today (second time), after a planned
reboot. So here is a completely different issue from the memory one
we've been discussing today.

There was other weirdness (for whatever reason _mysql could not find
libmysqlclient_r.so.15 on some restart attempts), but here is
something that seemed to occur consistently while Zope was
unresponsive:

On FreeBSD 5.4, with zserver-threads set to the default 4, there were
seven Zope threads with the following states (CPU use is 0% and memory
use is well below the maximum, pretty much where it is at after a
normal fresh Zope restart):

select
ksesig
kserel
kqread
kqread
kqread
kqread

When Zope is operating normally and idle, I generally only see the
three top threads, and when serving pages, I rarely see more than
three threads; one actually often disappears and I only see two, one
in the RUN state.

I know that the kqread state has to do with the kqueue or kevent
system call, and assume that Zope being in that waiting state for a
long time is abnormal. Asking here in case someone has seen this
behavior before and knows what might be the cause. As for the last and
only other time this happened, Zope regained normal behavior by itself
after a little while (in the order of half an hour). I don't see
anything abnormal in the event log (other than the _mysql issue I
mentioned above), and while stuck, requests do not register in the
Z2.log. Browsers do get a connection because they state waiting
for... but they do not receive anything, not even headers. After a
fresh restart, I could get Zope to respond to a relatively benign
request (the top level ZMI page), while there were only three Zope
threads, but if asking for more, Zope would quickly get to the
unresponsive state described above.

We're thinking that we may be having underlying OS issues and will
probably ask on a FreeBSD list and/or upgrade FreebBSD and hope that
helps, but I'm asking here first just in case that this pattern of
behavior was observed and resolved before.

Cheers,

Jean
___
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] Zope hangs in FreeBSD with plenty of memory and CPU resources

2007-02-25 Thread Stefan H. Holek

http://plone.org/documentation/faq/plone-on-bsd-python-stack

Stefan


On 26. Feb 2007, at 06:06, Jean Lagarde wrote:


All,

As a coincidence, that hang of Zope I mentioned in a message I posted
yesterday has happened again today (second time), after a planned
reboot. So here is a completely different issue from the memory one
we've been discussing today.


--
Anything that, in happening, causes something else to happen,
causes something else to happen.  --Douglas Adams


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