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

GC_LOG_OPTS customisation is a little confusing

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.0, 8.9
    • None
    • None

    Description

      GC_LOG_OPTS customisation is currently supported but (pre Java 9) the customised settings are supplemented e.g. https://github.com/apache/lucene-solr/blob/releases/lucene-solr/6.6.0/solr/bin/solr#L1713

      GC_LOG_OPTS+=("$gc_log_flag:$SOLR_LOGS_DIR/solr_gc.log" '-XX:+UseGCLogFileRotation' '-XX:NumberOfGCLogFiles=9' '-XX:GCLogFileSize=20M')
      

      This seems unexpected and confusing. Some ideas for making it less confusing:

      • a new GC_LOG_FILE_OPTS option
        • the new option can be customised but if unset it would default to existing behaviour
      • use customised GC_LOG_OPTS 'as is'
        • this would be a change to existing behaviour i.e. the solr#L1713 settings mentioned above would no longer be appended

      Attachments

        1. SOLR-11233.patch
          1 kB
          Pranav Murugappan

        Issue Links

          Activity

            People

              cpoerschke Christine Poerschke
              cpoerschke Christine Poerschke
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h