Using Ambari Core Services
Also available as:
PDF
loading table of contents...

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:
  1. In Ambari Web, browse to Services > Ambari Infra > Configs.
  2. In Settings, you will see two sliders controlling the Infra Solr Heap Size.
  3. Set the Infra Solr Minimum Heap Size to 12GB or 12,288MB.
  4. Set the Infra Solr Maximum Heap Size to 12GB or 12,288MB.
  5. Click Save to save the configuration.
  6. 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:

    Table 1. Garbage Collection Heap Size Requirements for Solr
    Heap Size G1HeapRegionSize
    < 4GB 1MB
    4-8GB 2MB
    8-16GB 4MB
    16-32GB 8MB
    32-64GB 16MB
    >64GB 32MB