|
|
|
Re: How to garbage collect obsolete plugin versions? [message #132537 is a reply to message #132492] |
Mon, 08 June 2009 23:09 |
Eclipse User |
|
|
|
Originally posted by: eclipse-newsgroups.scharf.gr
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
needed....
Michael
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?
>
> -Simon
>
>
> "Michael Scharf" <eclipse-newsgroups@scharf.gr> wrote in message
> news:h0j53b$lke$1@build.eclipse.org...
>> Hi,
>>
>> Garbage Collections seems to be one of the concepts of p2:
>> http://wiki.eclipse.org/Equinox/p2/Concepts
>>
>> I have lots of different versions of plugins in my installation,
>> how do I garbage collect them?
>>
>>
>> Michael
>> --
>> Michael Scharf
>> Wind River Systems GmbH
>> http://www.WindRiver.com
>> http://MichaelScharf.blogspot.com/
>
>
--
Michael Scharf
Wind River Systems GmbH
http://www.WindRiver.com
http://MichaelScharf.blogspot.com/
|
|
|
Re: How to garbage collect obsolete plugin versions? [message #132550 is a reply to message #132537] |
Tue, 09 June 2009 01:16 |
Eclipse User |
|
|
|
Originally posted by: eclipse-newsgroups.scharf.gr
Hmm,
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...
Michael
> 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
> needed....
>
> Michael
>
> 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?
>>
>> -Simon
>>
>>
>> "Michael Scharf" <eclipse-newsgroups@scharf.gr> wrote in message
>> news:h0j53b$lke$1@build.eclipse.org...
>>> Hi,
>>>
>>> Garbage Collections seems to be one of the concepts of p2:
>>> http://wiki.eclipse.org/Equinox/p2/Concepts
>>>
>>> I have lots of different versions of plugins in my installation,
>>> how do I garbage collect them?
>>>
>>>
>>> Michael
>>> --
>>> Michael Scharf
>>> Wind River Systems GmbH
>>> http://www.WindRiver.com
>>> http://MichaelScharf.blogspot.com/
>>
>>
>
>
--
Michael Scharf
Wind River Systems GmbH
http://www.WindRiver.com
http://MichaelScharf.blogspot.com/
|
|
|
|
Re: How to garbage collect obsolete plugin versions? [message #132590 is a reply to message #132550] |
Tue, 09 June 2009 15:24 |
Eclipse User |
|
|
|
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)
ServiceHelper.getService(Activator.getContext(),
IProfileRegistry.class.getName());
if (profileRegistry == null)
throw new RuntimeException("Unable to acquire the profile registry
service.");
IProfile profile = profileRegistry.getProfile("SDKProfile");
new GarbageCollector().runGC(profile);
MessageDialog.openInformation(window.getShell(), "Profile Garbage
Collector", "Profile garbage collection finished.");
Michael Scharf wrote:
> Hmm,
>
> 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...
>
> Michael
>
>
>> 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
>> needed....
>>
>> Michael
>>
>> 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?
>>>
>>> -Simon
>>>
>>>
>>> "Michael Scharf" <eclipse-newsgroups@scharf.gr> wrote in message
>>> news:h0j53b$lke$1@build.eclipse.org...
>>>> Hi,
>>>>
>>>> Garbage Collections seems to be one of the concepts of p2:
>>>> http://wiki.eclipse.org/Equinox/p2/Concepts
>>>>
>>>> I have lots of different versions of plugins in my installation,
>>>> how do I garbage collect them?
>>>>
>>>>
>>>> Michael
>>>> --
>>>> Michael Scharf
>>>> Wind River Systems GmbH
>>>> http://www.WindRiver.com
>>>> http://MichaelScharf.blogspot.com/
>>>
>>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06013 seconds