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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: