On 7/31/2013 5:21 AM, Erick Erickson wrote:
> By and large, you should not second-guess the JVM. I really think you're
> chasing something that won't have measurable impact, just wasted effort.
> In general, the GC settings that come with your java are pretty good and
> you really should leave them alone until you have measurements
> indicating that GC is a problem.
> 
> But if you insist, here are some interesting blogs:
> http://www.lucidimagination.com/blog/2011/03/27/garbage-collection-bootcamp-1-0/
> 
> And one for the G1 collector:
> http://wiki.apache.org/solr/ShawnHeisey#GC_Tuning

When it comes to garbage collection, I've got to disagree with Erick
about second-guessing the JVM.  The default collector has TERRIBLE
performance characteristics with Lucene/Solr, unless your heap size is
small.

Erick is right about not changing anything until you actually see a
problem, though.  It's entirely possible that you can run with all
defaults and never see a problem.

More detail about G1 and Solr.  Disclaimer, I wrote it:
http://wiki.apache.org/solr/SolrPerformanceProblems#GC_pause_problems

Thanks,
Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to