Isn't a 20mb young generation pretty small these days?  For a 4gb heap, you
might want to try giving 5-10% of it to the young generation by setting
 -XX:NewSize=256M

Some of the older
docs<http://www.oracle.com/technetwork/java/gc-tuning-5-138395.html#1.1.Sizing%20the%20Generations%7Coutline>have
a ratio of 1/3 between young/old, so that would be 1gb young, but that
is probably bigger than you need.  I'm far from an expert though... what
size do other people use?

Matt


On Tue, May 17, 2011 at 12:55 AM, Jack Levin <[email protected]> wrote:

> This is the way I read it. "Low processors" == "high CPU tasks, e.g. high
> load".   So, Incremental takes GC down a number of notches when it comes to
> competing with CPU for APP threads.  That being the case the deadlock is
> less likely.  It would be useful to add code to the RS that will start
> blocking any RPC calls should this condition be detected, if we block say
> for 10 seconds, GC could finish doing it 'dirty' work and release CPU :)
>
>
> -Jack
>
>
> On May 16, 2011 5:53 PM, "Stack" <[email protected]> wrote:
> > I don't understand what of the below made a difference though the
> > difference is plain from the GC logs you show.
> >
> > See below:
> >
> > On Mon, May 16, 2011 at 5:06 PM, Jack Levin <[email protected]> wrote:
> >> Those are the lines I added:
> >>
> >> -XX:+CMSIncrementalMode \  <--------
> >
> >
> > From the doc., it says about i-cms and java6 "This feature is useful
> > when applications that need the low pause times provided by the
> > concurrent collector are run on machines with small numbers of
> > processors (e.g., 1 or 2)." [See
> >
> http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html#icms
> ]
> > Don't you have > 2 processors per machine?
> >
> > St.Ack
>

Reply via email to