Transcience exceeds maximum number .. ZStylesheet bug?
Not sure where to go with this.. I'm beating up my Zope server with OpenSta (thanks for dropping the link on this list the other day..) My test fails after about 980 downloads, with the traceback below. 1. I'm not using any session data. 2. I have a ZStyleSheet, but it's just being rendered.. 3. No cache objects enabled on this test server. Any ideas? Error Type: TALESError Error Value: Products.Transience.Transience.MaxTransientObjectsExceeded on 1000 exceeds maximum number of subobjects 1000 in '<PythonExpr here.StyleSheet.style()>', at line 7, column 5 Traceback (innermost last): File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: Track) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 98, in publish File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: Track) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: Track) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: Track) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: Track) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/PythonScripts/PythonScript.py, line 302, in _exec (Object: Track) (Info: ({'script': <PythonScript instance at 94202f0>, 'context': <Folder instance at 941c7b0>, 'container': <Folder instance at 941c7b0>, 'traverse_subpath': ['lqw8QjJo3dUbajsVYgQblQ==']}, (<h3>form</h3><table></table><h3>cookies</h3><table><tr valign="top" align="left"><th>_ZopeId</th><td>' File Script (Python), line 51, in Track File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: AnonymousTracking) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: AnonymousTracking) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/PageTemplates/ZopePageTemplate.py, line 210, in _exec (Object: AnonymousTracking) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/PageTemplates/PageTemplate.py, line 86, in pt_render (Object: AnonymousTracking) (Info: {'container': <Folder instance at 941c7b0>, 'here': <Folder instance at 941c7b0>, 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x8899bc4>, 'nothing': None, 'options': {'REQUEST': <h3>form</h3><table></table><h3>cookies</h3><table><tr valign="top" align="left"><th>_ZopeId</th><td>'85164040A0cmIOYAKNU'</td></tr><tr valign="top" align="left"><th>email</th><td>'bkc@murkworks.com'</td></tr><tr valign="top" align="left"><th>zwiki_showlogo</th><td>''</td> 'args': (), 'messagetext': None, 'mode': 'anonymous', 'package': Package('013514408014469','013514408014469',1,1,None,None,None,None,None,'Carton',1,'Exception',<MurkWorks.sapInclude.Timestamp instance at 0x95087c4>,<MurkWorks.sapInclude.Timestamp instance at 0x97884a4>,None,None,None,None,None,'233170','A1204',None,None,None,None,None, 'packageevents': [PackageEvent('013514408014469:XXXX:3bcc77c0','013514408014469',<MurkWorks.sapInclude.Timestamp instance at 0x9e7b994>,'DeliveryDetail','Exception','None','Error:* (500139) No record of this package was found. 08 013514408014469 FedEx Ground')], 'packages': [Package('013514408014469','013514408014469',1,1,None,None,None,None,None,'Carton',1,'Exception',<MurkWorks.sapInclude.Timestamp instance at 0x9c71814>,<MurkWorks.sapInclude.Timestamp instance at 0x9a3e2e4>,None,None,None,None,None,'233170','A1204',None,None,None,None,Non 'shipment': Shipment('013514408014469',None,None,None,None,None,1,None,'RIVER BLUFFS NURSING& REHAB',None,'3354 JEROME LANE',None,None,'CAHOKIA','IL','62206',None,None,None,None,'in',None,'Collect',None,None,'Fedex','Ground','FEDEXGROUND',None,None,'Delivered',<MurkWorks.sapInclude.T 'shipper': Org('in','Instantel Inc.',None,'309 Legget Dr',None,None,'Kanata','Ontario','K2K 2E7','CANADA',None,None,None,None,None,None,None,None,'XOINSINC362KAN',None,None,None,'613-592-4642','613-592-4296','800-267-9lll',None,None,'Y',None,'Y',None,'Y','N',None,3,None,None,None,Non 'trackfrom': 'http://www.strader-ferris.com/Track'}, 'request': <h3>form</h3><table></table><h3>cookies</h3><table><tr valign="top" align="left"><th>_ZopeId</th><td>'85164040A0cmIOYAKNU'</td></tr><tr valign="top" align="left"><th>email</th><td>'bkc@murkworks.com'</td></tr><tr valign="top" align="left"><th>zwiki_showlogo</th><td>''</td></tr><tr val 'root': <Application instance at 938ae20>, 'template': <ZopePageTemplate instance at 93d4fe8>, 'traverse_subpath': ['lqw8QjJo3dUbajsVYgQblQ=='], 'user': Anonymous User}) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 158, in __call__ File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 191, in interpret File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 503, in do_defineMacro File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 191, in interpret File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 491, in do_condition File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 191, in interpret File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/TAL/TALInterpreter.py, line 432, in do_insertStructure_tal File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/PageTemplates/TALES.py, line 247, in evaluate File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/PageTemplates/ZRPythonExpr.py, line 49, in __call__ (Info: here.StyleSheet.style()) File Python expression "here.StyleSheet.style()", line 2, in f File /home/bkc/Zope/Manage/Products/ZStyleSheet/ZStyleSheet.py, line 242, in style (Object: StyleSheet) File /home/bkc/Zope/Manage/Products/ZStyleSheet/ZStyleSheet.py, line 203, in _value (Object: StyleSheet) File /home/bkc/Zope/Manage/Products/ZStyleSheet/ZStyleSheet.py, line 196, in _children (Object: StyleSheet) File /home/bkc/Zope/Manage/Products/ZStyleSheet/ZSSRule.py, line 163, in _value (Object: BODY) File /home/bkc/Zope/Manage/Products/ZStyleSheet/ZSSRule.py, line 155, in _children (Object: BODY) File /home/bkc/Zope/Manage/Products/ZStyleSheet/ZSSAttribute.py, line 75, in _value (Object: background-color) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 273, in __init__ File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 349, in initvars File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/HTTPRequest.py, line 845, in __getitem__ File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/ZPublisher/HTTPRequest.py, line 837, in get File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/Sessions/SessionDataManager.py, line 92, in getSessionData (Object: session_data_manager) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/Sessions/SessionDataManager.py, line 175, in _getSessionDataObject (Object: session_data_manager) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/Transience/Transience.py, line 133, in new_or_existing (Object: session_data) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/Transience/Transience.py, line 161, in new (Object: session_data) File /usr/local/Zope/Zope-2.5.1-linux2-x86/lib/python/Products/Transience/Transience.py, line 419, in __setitem__ (Object: session_data) TALESError: (see above) Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements
Brad Clements writes:
I'm beating up my Zope server with OpenSta (thanks for dropping the link on this list the other day..)
My test fails after about 980 downloads, with the traceback below.
1. I'm not using any session data.
2. I have a ZStyleSheet, but it's just being rendered..
3. No cache objects enabled on this test server. ... Error Type: TALESError Error Value: Products.Transience.Transience.MaxTransientObjectsExceeded on 1000 exceeds maximum number of subobjects 1000 in '<PythonExpr here.StyleSheet.style()>', at line 7, column 5 Apparently, your assumption 1 is wrong:
There is a session created for each of your requests. I see two options: * You extend your testing framework that is handles cookies. Then, instead of one new session per request, you will just have a single session for all your requests. * You find out what references "SESSION". From your traceback, it seems that "ZSSAttribute.py, line 75" is key to this question (although, it seems the "background-color" is looked up, which, for strange reasons, seems to trigger a DTML object). Dieter
Optionally, if you don't want to spelunk the code, set the environment variable ZSESSION_OBJECT_LIMIT to a value higher than 1000 in the shell that you use to start Zope. On Sun, 2002-09-01 at 17:12, Dieter Maurer wrote:
Brad Clements writes:
I'm beating up my Zope server with OpenSta (thanks for dropping the link on this list the other day..)
My test fails after about 980 downloads, with the traceback below.
1. I'm not using any session data.
2. I have a ZStyleSheet, but it's just being rendered..
3. No cache objects enabled on this test server. ... Error Type: TALESError Error Value: Products.Transience.Transience.MaxTransientObjectsExceeded on 1000 exceeds maximum number of subobjects 1000 in '<PythonExpr here.StyleSheet.style()>', at line 7, column 5 Apparently, your assumption 1 is wrong:
There is a session created for each of your requests.
I see two options:
* You extend your testing framework that is handles cookies.
Then, instead of one new session per request, you will just have a single session for all your requests.
* You find out what references "SESSION". From your traceback, it seems that "ZSSAttribute.py, line 75" is key to this question (although, it seems the "background-color" is looked up, which, for strange reasons, seems to trigger a DTML object).
Dieter
_______________________________________________ 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 )
participants (3)
-
Brad Clements -
Chris McDonough -
Dieter Maurer