[Zope] Memory Errors

Malthe Borch mborch at dsri.dk
Thu Jul 21 04:16:17 EDT 2005


Hello ng, ---

After a few hours, Zope becomes irresponsive and lashes out these kind of 
errors.


Traceback (most recent call last):
  File "/usr/local/lib/zope/lib/python/ZPublisher/Publish.py", line 104, 
in publish
    response.setBody(result)
  File "/usr/local/lib/zope/lib/python/ZServer/HTTPResponse.py", line 
256, in setBody
    HTTPResponse.setBody(self, body, title, is_error, **kw)
  File "/usr/local/lib/zope/lib/python/ZPublisher/HTTPResponse.py", line 
351, in setBody
    zlib.DEF_MEM_LEVEL,0)
MemoryError: Can't allocate memory for compression object

Traceback (most recent call last):
  File "/usr/local/lib/zope/lib/python/ZPublisher/Publish.py", line 101, 
in publish
    request, bind=1)
  File "/usr/local/lib/zope/lib/python/ZPublisher/mapply.py", line 88, in 
mapply
    if debug is not None: return debug(object,args,context)
  File "/usr/local/lib/zope/lib/python/ZPublisher/Publish.py", line 39, 
in call_object
    result=apply(object,args) # Type s<cr> to step into published object.
  File "/usr/local/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py", 
line 306, in __call__
    return self._bindAndExec(args, kw, None)
  File "/usr/local/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py", 
line 343, in _bindAndExec
    return self._exec(bound_data, args, kw)
  File "/usr/local/lib/zope/lib/python/App/special_dtml.py", line 175, in 
_exec
    try: result = render_blocks(self._v_blocks, ns)
  File "/usr/local/lib/python2.3/string.py", line 135, in join
    return sep.join(words)
MemoryError

What is going wrong here? I'm running an OpenBSD-system with the latest 
Python 2.3.5 and 512 MB of RAM. The stack size is 0x100000, as opposed to 
0x20000 that previous *BSD-distributions of Python had as default.

Any clues are appreciated,

\mb



More information about the Zope mailing list