[Zope-dev] MemoryError problem
My application was running fine, but recently it started giving MemoryError: -- 2009-07-24T05:31:57 ERROR ZODB.Connection Couldn't load state for 0x1d30bb Traceback (most recent call last): File /opt/front1/builds/F2.16/opt/Zope-2.8.8-final/lib/python/ZODB/Connection.py, line 704, in setstate self._setstate(obj) File /opt/front1/builds/F2.16/opt/Zope-2.8.8-final/lib/python/ZODB/Connection.py, line 758, in _setstate self._reader.setGhostState(obj, p) File /opt/front1/builds/F2.16/opt/Zope-2.8.8-final/lib/python/ZODB/serialize.py, line 495, in setGhostState state = self.getState(pickle) File /opt/front1/builds/F2.16/opt/Zope-2.8.8-final/lib/python/ZODB/serialize.py, line 488, in getState return unpickler.load() MemoryError -- What does this error mean? Is it saying that the object it is trying to load has some problems? The object which it was processing before the MemoryError occured is a normal html page. I am totally lost. What are the possible reasons for memory error? Any resources in Zope site or so, from which I can know more of? Thanks, Roopesh ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] MemoryError problem
yes On Fri, Jul 24, 2009 at 1:06 PM, Andreas Jung li...@zopyx.com wrote: On 24.07.09 09:33, Rupesh P Raj wrote: My application was running fine, but recently it started giving MemoryError: Problem persists after a restart? -aj ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] POSKeyError how to remove
Hi, Using Zope Debug Console, I used a part of the code fsrefs.py to find the oid's of POSKeyError: fs = FileStorage(path, read_only=1) undone = {} noload = {} for oid in fs._index.keys(): try: data, serial = fs.load(oid, ) except (KeyboardInterrupt, SystemExit): raise except POSKeyError: undone[oid] = 1 except: if VERBOSE: traceback.print_exc() noload[oid] = 1 This gave me one oid.Then I tried something like below : obj = app._p_jar[oid] But this gave me another POSKeyError instead :( Why does this happen? How can I delete this object. Thanks, Roopesh ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] POSKeyError how to remove
Hi Jim, But I am using ZODB 3.4.4 :( Are there any other options? How can I find where this invalid object is being referenced? Will something like packing resolve this? Thanks, Roopesh On Thu, Jul 23, 2009 at 4:45 PM, Jim Fulton j...@zope.com wrote: The object is already gone. It's odd that it is in the index. You can try deleting the object from the index and then saving the index. You might need to use ZODB 3.9 to do that, as I think __del__ was only recently added to file-storage indexes. Jim On Thu, Jul 23, 2009 at 6:57 AM, Rupesh P Rajroopesh.p...@gmail.com wrote: Hi, Using Zope Debug Console, I used a part of the code fsrefs.py to find the oid's of POSKeyError: fs = FileStorage(path, read_only=1) undone = {} noload = {} for oid in fs._index.keys(): try: data, serial = fs.load(oid, ) except (KeyboardInterrupt, SystemExit): raise except POSKeyError: undone[oid] = 1 except: if VERBOSE: traceback.print_exc() noload[oid] = 1 This gave me one oid.Then I tried something like below : obj = app._p_jar[oid] But this gave me another POSKeyError instead :( Why does this happen? How can I delete this object. Thanks, Roopesh ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) -- Jim Fulton ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How to use UserTrack product?
Thanks a lot Dieter for the guidance. It worked well. Thanks, Roopesh ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] How to use UserTrack product?
Hi, I am very newbee to Zope. In my Zope application I want to integrate UserTrack product (we dont use plone). I placed the UserTrack folder inside the Products directory, and created an instance of UserTrack inside some of the other zope products, as follows: u = UserTrack() logger(str(u.listUserActivities())) But the list is coming as empty. I think the place where I have initialised the UserTrack instance is wrong. In the Readme file which comes along with UserTrack says that, UserTrack lists the currently active authenticated users that are logged into zope and accesses an object below the folder where the UserTrack instance resides. So I guess I need to write initialize in some of the ZMI folder object, but which one?. Can anyone please help me. Thanks Roopesh ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )