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

Solr 5.1 does not use SOLR_JAVA_MEM in solr.in.sh

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.1
    • 5.2
    • None
    • None
    • CentOS 7

    Description

      Solr 5.0 uses the SOLR_JAVA_MEM in solr.in.sh while Solr 5.1 does not.

      I was able to resolve this by commenting out line 1262 in bin/solr

      SOLR_JAVA_MEM=()
      

      and setting SOLR_JAVA_MEM in bin/solr.in.sh

      SOLR_JAVA_MEM=('-Xms512m' '-Xmx512m')
      

      instead of

      SOLR_JAVA_MEM="-Xms512m -Xmx512m"
      

       

      This could probably be resolved with something like at line 1262 to 1269 in bin/solr

      if [ -z "$SOLR_JAVA_MEM" ]; then
        if [ "$SOLR_HEAP" != "" ]; then
          SOLR_JAVA_MEM=("-Xms$SOLR_HEAP" "-Xmx$SOLR_HEAP")
        else
          SOLR_JAVA_MEM=('-Xms512m' '-Xmx512m')
        fi
      else
        SOLR_JAVA_MEM=($SOLR_JAVA_MEM)
      fi
      

      instead of

      SOLR_JAVA_MEM=()
      if [ "$SOLR_HEAP" != "" ]; then
        SOLR_JAVA_MEM=("-Xms$SOLR_HEAP" "-Xmx$SOLR_HEAP")
      fi
      
      if [ -z "$SOLR_JAVA_MEM" ]; then
        SOLR_JAVA_MEM=('-Xms512m' '-Xmx512m')
      fi
      

      Attachments

        Issue Links

          Activity

            People

              andyetitmoves Ramkumar Aiyengar
              Kyle Barnhart Kyle Barnhart
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: