On 5/24/2019 9:23 AM, Shawn Heisey wrote:
On 5/24/2019 9:02 AM, sajitmk wrote:

Im trying to use G1GC garbage collection with Apache Solr 7.7 I've set the
variable GC_TUNE as follows

GC_TUNE="-XX:+UseG1GC -XX:+UseStringDeduplication" in
/etc/default/solr.in.sh

However, the solr process still seems to be using CMS
-XX:+UseConcMarkSweepGC

What is the precise command you're using to restart Solr?

I should also mention that the G1 tuning you have used will likely produce worse results than Solr's defaults, not better. One of the most important options for GC tuning with Solr is -XX:+ParallelRefProcEnabled ... without that, it doesn't matter which collector you're using, GC will not be optimal.

Here are the notes I have published on G1GC tuning that include the options I found to be most useful:

https://wiki.apache.org/solr/ShawnHeisey#G1_.28Garbage_First.29_Collector

Thanks,
Shawn

Reply via email to