[ https://issues.apache.org/jira/browse/SOLR-13446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16832983#comment-16832983 ]
Gus Heck commented on SOLR-13446: --------------------------------- One other difference to note is that the Xms won't match Xmx in the "java picks it" case, but it will still match in the explicitly specified heap case. The taking it to production section of the guide might want to point this out as further motivation for explicitly choosing memory size (the likely target for your see [https://blablah|https://blablah%29/] for details link :) ). Basically one should only let java pick for quick testing, prototyping or other very low key use cases. Anything serious should be set explicitly based on requirements & available resources. > 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 > Priority: Minor > > 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