You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Nicholas Stuart (JIRA)" <ji...@apache.org> on 2015/07/10 19:31:04 UTC

[jira] [Created] (SOLR-7773) Can not overwrite mem settings with env variable

Nicholas Stuart created SOLR-7773:
-------------------------------------

             Summary: Can not overwrite mem settings with env variable
                 Key: SOLR-7773
                 URL: https://issues.apache.org/jira/browse/SOLR-7773
             Project: Solr
          Issue Type: Bug
    Affects Versions: 5.2.1
         Environment: linux
            Reporter: Nicholas Stuart


With the changes for SOLR-7392 there is an unfortunate side affect that the variables can now ONLY be set in the ini file because SOLR_HEAP is predefined there. 

The 'bin/solr' script checks for the variables existence and uses it if set, and since the ini gets run at startup it will also overwrite whatever you set outside that file.

It looks like the solr startup script will default to 512 if nothing is set, so it should not need to be pre-set in this script. Main use case for this is automated deploys, and setting memory values in an environment variable outside of the ini scripts. Do not want to have to hack that file in the write spot during deployment to configure memory values.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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