Tuning JVM settings for
Solr

Heap sizing settings
are very important for production Solr instances.

The heap sizing settings are very important for production
Solr instances when indexing many Ranger audit logs. For production deployments, we suggest
setting the Infra Solr Minimum Heap Size, and Infra Solr
Maximum Heap Size to 12 GB. These settings can be found and applied by
following the steps below:

In Ambari Web, browse to Services > Ambari Infra > Configs.

In Settings, you will see two sliders controlling the Infra
Solr Heap Size.

Set the Infra Solr Minimum Heap Size to 12GB or 12,288MB.

Set the Infra Solr Maximum Heap Size to 12GB or 12,288MB.

Click Save to save the configuration.

Restart the affected services as prompted by Ambari.

The value used for the -XX:G1HeapRegionSize is based on the 12GB Solr Maximum Heap
recommended. If you choose to use a different heap size for the Solr server,
please consult the following table for recommendations: