|Re: How to garbage collect obsolete plugin versions? [message #132590 is a reply to message #132550]
||Tue, 09 June 2009 15:24
Originally posted by: dj_houghton.nospam.ca.ibm.com|
I created a new bundle with an icon with the following block of code. In
fact, I just used the example SampleAction to make it even easier.
IProfileRegistry profileRegistry = (IProfileRegistry)
if (profileRegistry == null)
throw new RuntimeException("Unable to acquire the profile registry
IProfile profile = profileRegistry.getProfile("SDKProfile");
MessageDialog.openInformation(window.getShell(), "Profile Garbage
Collector", "Profile garbage collection finished.");
Michael Scharf wrote:
> I am still puzzled when the automatic GC happens.
> I have a -configuration where the plugins are
> not garbage collected.... I wish there was a button
> to run the p2 GC...
>> It turns out that p2 does garbage collection (at some
>> point). So, now when I look into the installation
>> it seems quite clean. I guess some restart is
>> Simon Kaegi wrote:
>>> Garbage collection happens automatically after you've uninstalled or
>>> updated something. What the GC worker does is goes through and
>>> deletes any of the artifacts referenced in the bundle pool that are
>>> no longer referenced by the current install/profile.
>>> The application Chris mentions would allow a manual run of the GC
>>> which might be useful in some situations but generally the automated
>>> GC should be adequate.
>>> I recall you using dropins and to be clear dropins are never GC'ed as
>>> these are managed by the user. Are you seeing tons of garbage in your
>>> bundle pool?
>>> "Michael Scharf" <firstname.lastname@example.org> wrote in message
>>>> Garbage Collections seems to be one of the concepts of p2:
>>>> I have lots of different versions of plugins in my installation,
>>>> how do I garbage collect them?
>>>> Michael Scharf
>>>> Wind River Systems GmbH
Powered by FUDForum
. Page generated in 0.03310 seconds