Re: [Zope3-Users] unregister, delete and pack, still no gc?

2008-12-23 Thread Adam GROSZER
Hey Roy,

Can happen that BTrees keep deleted objects referenced, so they're not
gc'ed.

See https://bugs.launchpad.net/bugs/294788

Tuesday, December 23, 2008, 8:35:22 AM, you wrote:

RM> Hi Folks,

RM> I have either stumbled on a storage leak in the ZODB, or I am
RM> missing something in my understanding of registration.

RM> Briefly, if I add a folder to the ZODB, make it a site, then
RM> unregister it, delete it and pack the ZODB, I see the ZODB
RM> increase in size.Each time I run the tests, the ZODB keeps growing
RM> (by about 7KB). I restarted the ZODB to see if it would help, but no!

RM> Here are my exact steps:

RM> 1. add a Folder
RM> 2. make a the folder a site.
RM> 3. register the folder (unnamed utility of type ISite)
RM> 4. remove the registration from the "registrations" tab.
RM> 5. delete the folder.
RM> 6. pack the ZODB.

RM> I have also attached a selenium test that performs all of this.



-- 
Best regards,
 Adam GROSZERmailto:agros...@gmail.com
--
Quote of the day:
"I must do something" will always solve more problems than "Something must be 
done." 
- Unknown 

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] unregister, delete and pack, still no gc?

2008-12-23 Thread Roger Ineichen
Hi Roy

> Betreff: [Zope3-Users] unregister, delete and pack, still no gc?
> 
> Hi Folks,
> 
> I have either stumbled on a storage leak in the ZODB, or I am 
> missing something in my understanding of registration.
> 
> Briefly, if I add a folder to the ZODB, make it a site, then 
> unregister it, delete it and pack the ZODB, I see the ZODB 
> increase in size.Each time I run the tests, the ZODB keeps 
> growing (by about 7KB). I restarted the ZODB to see if it 
> would help, but no!
> 
> Here are my exact steps:
> 
> 1. add a Folder
> 2. make a the folder a site.
> 3. register the folder (unnamed utility of type ISite) 4. 
> remove the registration from the "registrations" tab.
> 5. delete the folder.
> 6. pack the ZODB.
> 
> I have also attached a selenium test that performs all of this.

This topic is on my todo list since a very long time. There is
defently something wrong with the concept or at least how we use it.

Here are some of my guesses.

I think the problem is related to the deep of object references
the carbage collector will follow. The carbage collector only looks
for referenced objects. As long as an object has a reference to any
other object it doesn't get removed. The problem could be solved if
the carbage collector whould follow to the DB root for each object.
My guess is that the carbage collector doesn't look for such root
references. (could be very slow)

If my guess is correct, the following happens.

Since we have annotations and nothing will cleanup the annotation
and it's referenced objects, this objects will stay forever.
e.g. security map, dublin core

And it also means:
In your custom project, you have to take care on every reference.
This means you have to set every object reference and back reference
to None if you remove objects.

Are I'm right or totaly wrong?

Regards
Roger Ineichen
_
END OF MESSAGE

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Is zope3 dead?

2008-12-23 Thread Andreas Jung

On 23.12.2008 9:21 Uhr, Alek wrote:

Anyway, still both the list traffic and wiki traffic seem to be much
lower than eg. one year ago.
I'm glad the development goes on, but publishing info about new releases
of Known Good Sets would be nice - otherwise the 1sttimers (or people
like me, who haven't worked with zope for some time) don't know about
that \



Keep in mind that the Zope component became very mature over the last 
years and as Jim pointed out the goal of the Zope 3 project were 
reached. IN addition: the whole community has split up over the years 
into other projects like Grok (the Grok list is very active).


-aj
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:i...@zopyx.com
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Is zope3 dead?

2008-12-23 Thread Alek
Anyway, still both the list traffic and wiki traffic seem to be much lower
than eg. one year ago.
 I'm glad the development goes on, but publishing info about new releases of
Known Good Sets would be nice - otherwise the 1sttimers (or people like me,
who haven't worked with zope for some time) don't know about that \

Warm Regards,
Alek.

2008/12/22 Dan Korostelev 

> Oh, also note, that zope3 releases actually happen and the latest one
> (according to SVN) is 3.4.0c7 (released on sept 2008). But they are
> released in form of versions.cfg file for KGS (like
> http://download.zope.org/zope3.4/versions-3.4.0c7.cfg) instead of
> tarballs. I think this is the most important thing that should be
> mentioned on the website.
>
> Correct me if I am wrong. :)
>
> 2008/12/21 Alek :
> > For some time, I have a bad, worrisome feeling that Zope3 development
> pace
> > has slew down.
> > Today looked to zope wiki and discovered that there are virtually no new
> > articles. I've also found that last release is almost one year old and
> zope
> > 3.4.0c0 is not even a real release, but a release candidate. Someone
> would
> > say: hey, but maybe the development has just been decentralized? Zope 3.4
> is
> > the first eggified release, so maybe the development just moved to eggs
> > (z3c.* and others).
> > But I digged deeper and searched for some stats of Zope3-Users traffic,
> > thanks to google. What I found I have published on a chart at
> > http://pmiblog.blox.pl/2008/12/Is-Zope3-Dead.html. The traffic is at
> least
> > half lower in 2008 than in 2007.
> >
> > Maybe the traffic moved somewhere else - to Wiki? This hypothesis haven't
> > worked: I looked to zope 3 wiki and:
> >
> > the last new topic is 3 months old
> > last month there is one edit of a topic
> > After July 2008 there was not a one month with more than 5 edits.
> >
> > To summarize: It seems that zope3 development and engegement have been
> > stalled for over half a year.
> > Any thoughts? Have I missed some switch to other communication channels?
> Or
> > maybe grok really took away all hearts and souls?
> > What are the causes of the slowdown? Or maybe I just misinterpret the
> > symptoms?
> >
> > Warm Regards,
> > Alek
> >
> > ___
> > Zope3-users mailing list
> > Zope3-users@zope.org
> > http://mail.zope.org/mailman/listinfo/zope3-users
> >
> >
>
>
>
> --
> WBR, Dan Korostelev
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users