[Zope] Cache question

Michel Pelletier michel@digicool.com
Wed, 8 Dec 1999 14:47:51 -0500


> -----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