[ZCM] [ZC] 1244/ 4 Resolve "MaxTransientObjectsExceeded and KeyError"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Mon May 17 04:37:23 EDT 2004


Issue #1244 Update (Resolve) "MaxTransientObjectsExceeded and KeyError"
 Status Resolved, Zope/bug medium
To followup, visit:
  http://zope.org/Collectors/Zope/1244

==============================================================
= Resolve - Entry #4 by mcdonc on May 17, 2004 4:37 am

 Status: Pending => Resolved

This is actually two separate bug reports.  The first bug report, a KeyError in sessioning, is fixed in CVS (what will be 2.7.1).  The second bug report "max transient objects exceeded" is not a bug; you need to set this higher in zope.conf (Zope 2.7.X).
________________________________________
= Comment - Entry #3 by camil7 on Mar 1, 2004 4:17 pm

Hm, 2.5.1 is a little old. Is there any chance You could
upgrade to 2.6.4 ?  Things have changes a little 
in between.

The non persistent behaviour if the
"Maximum number of subobjects" property is not a bug;
use the ZSESSION_OBJECT_LIMIT environment variable
instead for a more opersistent setting
(see docs/ENVIRONMENT.txt )
________________________________________
= Comment - Entry #2 by EIONET on Mar 1, 2004 4:04 am

We just noticed also that when you restart Zope, then "Maximum number of subobjects" in /temp_folder/session_data is reset to 1000.

________________________________________
= Request - Entry #1 by Anonymous User on Mar 1, 2004 3:58 am

We set the limit of subobjects to 10.000, but we just got the message MaxTransientObjectsExceeded, and the website didn't work after this. This is not the error we are reporting. However, here is the traceback.
  File /prj/reports251/lib/python/ZPublisher/Publish.py, line 150, in publish_module
  File /prj/reports251/lib/python/Products/iHotfix/__init__.py, line 80, in new_publish
  File /prj/reports251/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /prj/reports251/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
    (Object: Reports)
  File /prj/reports251/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /prj/reports251/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: index_html)
  File /prj/reports251/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: index_html)
  File /prj/reports251/lib/python/OFS/DTMLMethod.py, line 127, in __call__
    (Object: index_html)
  File /prj/reports251/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__
    (Object: index_html)
  File /prj/reports251/lib/python/OFS/DTMLMethod.py, line 120, in __call__
    (Object: standard_html_header)
  File /prj/reports251/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__
    (Object: standard_html_header)
  File /prj/reports251/lib/python/OFS/DTMLMethod.py, line 120, in __call__
    (Object: initiateL10Nsession)
  File /prj/reports251/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__
    (Object: initiateL10Nsession)
  File /prj/reports251/lib/python/OFS/DTMLMethod.py, line 120, in __call__
    (Object: use_local)
  File /prj/reports251/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__
    (Object: use_local)
  File /prj/reports251/lib/python/DocumentTemplate/DT_Util.py, line 153, in eval
    (Object: SESSION.has_key('L10NVisit'))
    (Info: SESSION)
  File /prj/reports251/lib/python/ZPublisher/HTTPRequest.py, line 845, in __getitem__
  File /prj/reports251/lib/python/ZPublisher/HTTPRequest.py, line 837, in get
  File /prj/reports251/lib/python/Products/Sessions/SessionDataManager.py, line 92, in getSessionData
    (Object: session_data_manager)
  File /prj/reports251/lib/python/Products/Sessions/SessionDataManager.py, line 175, in _getSessionDataObject
    (Object: session_data_manager)
  File /prj/reports251/lib/python/Products/Transience/Transience.py, line 133, in new_or_existing
    (Object: session_data)
  File /prj/reports251/lib/python/Products/Transience/Transience.py, line 161, in new
    (Object: session_data)
  File /prj/reports251/lib/python/Products/Transience/Transience.py, line 419, in __setitem__
    (Object: session_data)
MaxTransientObjectsExceeded: 1000 exceeds maximum number of subobjects 1000

The error we are reporting, is that we can't go into temp_folder after the incident. We get KeyError. Here is the traceback:

  File /prj/reports251/lib/python/ZPublisher/Publish.py, line 150, in publish_module
  File /prj/reports251/lib/python/Products/iHotfix/__init__.py, line 80, in new_publish
  File /prj/reports251/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /prj/reports251/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
    (Object: session_data)
  File /prj/reports251/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /prj/reports251/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: manage_container)
  File /prj/reports251/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: manage_container)
  File /prj/reports251/lib/python/App/special_dtml.py, line 61, in __call__
    (Object: manage_container)
  File /prj/reports251/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__
    (Object: manage_container)
  File /prj/reports251/lib/python/Products/Transience/Transience.py, line 403, in nudge
    (Object: session_data)
  File /prj/reports251/lib/python/Products/Transience/Transience.py, line 364, in _getCurrentBucket
    (Object: session_data)
  File /prj/reports251/lib/python/Products/Transience/Transience.py, line 390, in _clean
    (Object: session_data)
  KeyError: 03992013A1NZCYe6nSI

You can simulate by setting the session limit to 1, and then visit the website from two different browsers.



==============================================================




More information about the Zope-Collector-Monitor mailing list