Shawn Heisey created SOLR-13446:
-----------------------------------

             Summary: Improve default heap size and related handling
                 Key: SOLR-13446
                 URL: https://issues.apache.org/jira/browse/SOLR-13446
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
          Components: scripts and tools
    Affects Versions: 8.0
            Reporter: Shawn Heisey


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to