lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <>
Subject Re: Very long young generation stop the world GC pause
Date Thu, 08 Dec 2016 15:07:14 GMT
On 12/8/2016 1:06 AM, forest_soup wrote:
> As you can see in the gc log, the long GC pause is not a full GC. It's a
> young generation GC instead.  
> In our case, full gc is fast and young gc got some long stw pause.
> Do you have any comments on that, as we usually believe full gc may cause
> longer pause, but young generation should be ok?

While full GC is *typically* where long pauses happen, it can happen
with *any* collection.

The startup script in Solr 5.0 and later comes with GC tuning, so you
probably should not be messing with it at all.  If you feel that you
must change the GC tuning to G1GC, perhaps you should try these settings
from my personal wiki page:

Also, I would strongly recommend that you drop your max heap to 31GB
instead of 32GB to change the pointer size, and that you investigate
whether you need a heap that large *at all*.  The numbers I saw in your
log on the Jira issue did not indicate the need for that much heap
memory.  After the long collection, your heap usage was only 3450MB.  In
addition to reducing your heap size to a level that's more appropriate
to your Solr's needs, I would suggest that you try the GC tuning that
Solr has out of the box, which uses CMS.


View raw message