DTML documents killing Zope (was RE: [Zope] ZServer dying)
Mayers, Philip J
p.mayers@ic.ac.uk
Thu, 29 Mar 2001 11:01:13 +0100
Ok, I've narrowed down the circumstances a bit. The code actually looks more
like this:
## Script (Python) "showmachine_html"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=machineid=None
##title=
##
REQUEST = context.REQUEST
RESPONSE = REQUEST.RESPONSE
print context.standard_html_header(context,REQUEST)
if machineid:
# Call ZSQL method
m = container.machine.SQL_get(machineid=machineid)[0]
if m:
m = m[0]
else:
machineid = None
if machineid and m:
print container.machine.show_html(context,REQUEST,
machineid='',
owner='',
ownerdept='',
owneremail='',
ownertel='',
machinetype='',
machineos='',
machineserialno='',
location='',
comment=m.comment)
print context.standard_html_footer(context,REQUEST)
return printed
This will trigger it off. *If* the 12th parameter is a record property, then
the method will fail sporadically (but better than 90% of the time). There
can be >12 parameters though. Very, very odd. I'm trying to pare down the
example to one I can export - this is totally freaky.
Regards,
Phil
+----------------------------------+
| Phil Mayers, Network Support |
| Centre for Computing Services |
| Imperial College |
+----------------------------------+
-----Original Message-----
From: Mayers, Philip J [mailto:p.mayers@ic.ac.uk]
Sent: 29 March 2001 09:40
To: 'Evan Simpson '; 'zope@zope.org '
Subject: RE: DTML documents killing Zope (was RE: [Zope] ZServer dying)
Actually that's not true - it does die sometimes, but more often it hangs.
Regards,
Phil
+----------------------------------+
| Phil Mayers, Network Support |
| Centre for Computing Services |
| Imperial College |
+----------------------------------+
-----Original Message-----
From: Mayers, Philip J
Sent: 28 March 2001 23:23
To: 'Evan Simpson '; Mayers, Philip J; 'zope@zope.org '
Subject: RE: DTML documents killing Zope (was RE: [Zope] ZServer dying)
There's nothing in the logs, and no core dump - it never actually *dies*,
either:
1) The child threads die, and on the following request they respawn
2) Only one child thread dies, the parents parent gets a SIGSTOP and the
process becomes unresponsive.
The application is... complex. I'll try to replicate it the behaviour as a
smaller sample tomorrow...
Cheers,
Phil
-----Original Message-----
From: Evan Simpson
To: Mayers, Philip J; zope@zope.org
Sent: 28/03/01 21:18
Subject: Re: DTML documents killing Zope (was RE: [Zope] ZServer dying)
From: "Mayers, Philip J" <p.mayers@ic.ac.uk>
> FYI - it appears to be the _number_ of parameters. If I call the DTML
> document with 12 parameters (context,REQUEST,p0=0,...p11=11) it fails
under
> load, anything less than that (i.e. drop *any* one or more of the
paramters)
> and it's ok.
Nothing shows up in the log? Is there a core dump? I can't replicate
this
using the latest from the 2.3 branch. Could you send me a .zexp?
Cheers,
Evan @ digicool
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )