lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dyer, James" <>
Subject RE: Low pause GC for java 1.6
Date Sun, 01 Jul 2012 03:49:18 GMT

As you know, it really depends on the size of your index combined with which features you're
using.  There is really no substitute for having a good load test and monitoring tool and
to run multiple tests while trying different settings.

My guess is that you're experiencing "full" gc's, even with CMS enabled.  This means either
your tenured ("old") generation is too small or you have the "-XX:CMSInitiatingOccupancyFraction"
set too high (it starts the CMS too late and runs out of memory before it can finish).  We've
found that some of the defaults the JVM picks and/or the general advice out there doesn't
apply to an app like Solr, which is just a different kind of animal than the typical web frontend
you might run in a J2ee container.

Below are the settings i am using as a starting point for our development Solr 4.0 app.  These
may or may not work for you but at least should give you a basic idea of how 1 other installation
is configured.

Also, if you're using older grouping patches (I remember you worked on some of these), perhaps
you're hitting some of the scalibility problems that were predicted for some of these?  I'm
pretty sure the GA grouping features in 3.x solved these problems though.

Finally, you probably will get better responses on the users list than the dev list.  Also,
other users might benefit from other answers you get, so perhaps you could cross-post your

James Dyer
E-Commerce Systems
Ingram Content Group
(615) 213-4311

# Basic JVM settings.  I thing the 3g new generation size is bigger than you'd normally have
with a typical web app but for us it makes the old gen fill up slower and have fewer CMS gc's.
 Minor ("parnew") gc's are still fast enough for us, even with a biggish new gen.

# These are our CMS settings

# trial and error found this to be the sweet spot for out 16-way machines.

# YOu want these so you can see in your logs what is going on.  There are some tutorials on
the web on how to make sense of verbose garbage collection.  There's no problem using these
in Production.

# Use this on a 64-bit machine unless your jvm is too old to support it (on by default on
newer jvms, I think)

# we found these save a little memory

-----Original Message-----
From: Bill Bell [] 
Sent: Saturday, June 30, 2012 8:49 PM
To: Bill Bell
Subject: Re: Low pause GC for java 1.6


Bill Bell
Sent from mobile

On Jun 29, 2012, at 9:09 PM, Bill Bell <> wrote:

> We are getting large Solr pauses on Java garbage collection in 1.6 Java.
> We have tried CMS. But we still have. 4 second wait on GC.
> What works well for Solr when using 16 GB of RAM?
> I have read lots of articles and now just looking for practical advise and examples.
> Sent from my Mobile device
> 720-256-8076

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message