Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13446

Improve default heap size and related handling



    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 8.0
    • None
    • scripts and tools
    • None


      Solr's scripts have a default max heap setting of 512MB. I think it's fair to say that for a production install, this is ridiculously small. Nearly everyone who runs a Solr server will need to increase this value.

      I think it would be useful to issue a warning in the log when the heap size is below a certain value. Text like "Detected max heap size is XXXX. It might be necessary to increase the heap size for proper operation. See https://lucene.apache.org/solr/path/to/ref/guide/location for details."

      For people who are running very small servers, there should be a config option to turn off that logging when somebody knows that the default heap size is perfectly fine for their setup.

      At the same time, we also need to improve the default heap size. I'm going to ask everyone to bikeshed about what the new default should be. Initial thought is a 2GB default, to be made smaller automatically if detected system memory is low. If the admin has explicitly set the heap size, then none of this will take place.




            Unassigned Unassigned
            elyograg Shawn Heisey
            0 Vote for this issue
            5 Start watching this issue