RE: [Zope] Cache question
-----Original Message----- From: Bruno Mattarollo [mailto:brunomadv@ciudad.com.ar] Sent: Wednesday, December 08, 1999 11:29 AM To: Michel Pelletier; zope@zope.org Subject: Re: [Zope] Cache question
Hi Michel...
Yes I saw that and read the ZCMG document... but what I was asking, I forgive me if I didn't express myself correctly in english ;-) is: if I raise the "target size", can I cause some problems to the normal operation of my Zope server? I mean, it's a production system and I don't want to bring it down... :-)
If Zope tried to activate an object and doesn't have enough virtual memory you will get a memory error. If your cache is consuming all of your virtual memory like that though, you should seriously consider turning down your cache size or shortening the access time so that Zope is more agressive about keeping the cache size smaller. I disussed with Jim the possibility of Zope trying to recover from such a memory error by trying to flush the cache, but we decided that a memory error is kinda hard to allways get away from cleanly every time. In fact, I think that if your running out of memory, even just the process of trying to recover from that could cause more memory errors, which would sorta blow your exception logic out of the water.
I have aprox. 1200 objets, the target size is set to the default (400) ... I have 1019 objects in the cache... Should I raise the target size to 1200?
In that case you would be able to hold your entire object database in memory. If you have that kind of memory, go for it. -Michel
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Michel Pelletier
In that case you would be able to hold your entire object database in memory. If you have that kind of memory, go for it.
Is there a quick and easy way to compute the size of your objects? Am I wrong to assume this is just the size of the ZODB/Data.fs? Or does Zope use a lot more memory when there is activity in the DB? Kinda stupid and basic question, but... :) Regards, Alexander Limi http://mp3.no
participants (2)
-
Alexander Limi -
Michel Pelletier