You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Thorbjørn Ravn Andersen <th...@gmail.com> on 2006/12/27 23:07:27 UTC
Re: [General VM] GC strategy:how to garbage collect short-lived objects
quickly.
Leo Li skrev den 14-09-2006 05:08:
> Of course it is possible to limit the java heap so as to force gc
> frequently as a workround, is it preferrable to collect short-lived
> objects
> quickly such as adopt aged-related object queues as one of the gc
> strategy?
We experimented with this on a Sun box running Sun JDK where one of the
more exotic GC's in the server VM used parallel garbage collection
without stopping the world for the program executed.
This was needed in a large scale J2EE application to avoid user
perceptible pauses. ''
--
Thorbjørn
Re: [General VM] GC strategy:how to garbage collect short-lived objects quickly.
Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
On Dec 28, 2006, at 6:10 AM, Tim Ellison wrote:
> Thorbjørn Ravn Andersen wrote:
>> Leo Li skrev den 14-09-2006 05:08:
>>> Of course it is possible to limit the java heap so as to force gc
>>> frequently as a workround, is it preferrable to collect short-lived
>>> objects
>>> quickly such as adopt aged-related object queues as one of the gc
>>> strategy?
>>
>> We experimented with this on a Sun box running Sun JDK where one
>> of the
>> more exotic GC's in the server VM used parallel garbage collection
>> without stopping the world for the program executed.
>> This was needed in a large scale J2EE application to avoid user
>> perceptible pauses. ''
>
> This is a common requirement, and there is a whole science around
> optimizing the throughput / speed of the memory manager.
>
> With the greatest of respect to the MM researchers who are making
> great
> progress, the commercial response so far seems to be a bunch of
> heuristics and knobs to tune, e.g. "Understanding the Garbage
> Collector"
> http://publib.boulder.ibm.com/infocenter/javasdk/v5r0/topic/
> com.ibm.java.doc.diagnostics.50/html/contents.html#ToC_27
>
What, you don't believe that "Out of the Box" is an imperative
configuration for enterprise customers? ;)
geir
Re: [General VM] GC strategy:how to garbage collect short-lived objects
quickly.
Posted by Tim Ellison <t....@gmail.com>.
Thorbjørn Ravn Andersen wrote:
> Leo Li skrev den 14-09-2006 05:08:
>> Of course it is possible to limit the java heap so as to force gc
>> frequently as a workround, is it preferrable to collect short-lived
>> objects
>> quickly such as adopt aged-related object queues as one of the gc
>> strategy?
>
> We experimented with this on a Sun box running Sun JDK where one of the
> more exotic GC's in the server VM used parallel garbage collection
> without stopping the world for the program executed.
> This was needed in a large scale J2EE application to avoid user
> perceptible pauses. ''
This is a common requirement, and there is a whole science around
optimizing the throughput / speed of the memory manager.
With the greatest of respect to the MM researchers who are making great
progress, the commercial response so far seems to be a bunch of
heuristics and knobs to tune, e.g. "Understanding the Garbage Collector"
http://publib.boulder.ibm.com/infocenter/javasdk/v5r0/topic/com.ibm.java.doc.diagnostics.50/html/contents.html#ToC_27
Regards,
Tim