GC Tuning for Solr The secret to GC tuning: Eliminating full garbage collections. A full garbage collection is slow, no matter what collector you're using. If you can set up the options for GC such that both young and old generations are always kept below max size by their generation-specific collection algorithms, performance is almost guaranteed to be good. G1 (Garbage First) Collector With the newest Oracle Java versions, G1GC is looking extremely good. Do not try these options unless you're willing to run the latest Java 7 or Java 8, preferably from Oracle. Experiments with early Java 7 releases were very disappointing. My testing has been with Oracle 7u72, and I have been informed on multiple occasions that Oracle 8u40 will have much better G1 performance. I typically will use a Java heap of 6GB or 7GB. These settings were created as a result of a discussion with Oracle employees on the hotspot-gc-use mailing list : JVM_OPTS=" \ -XX:+UseG1GC \ -XX:
Read full article from ShawnHeisey - Solr Wiki
No comments:
Post a Comment