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

Roll over GC logs by default via bin/solr scripts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.3, 7.0
    • scripts and tools

    Description

      The Oracle JDK supports rolling over GC logs. I propose to add the following to the solr.in.

      {sh,cmd}

      scripts to enable it by default:

      -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=20M
      

      Unfortunately, the JDK doesn't have any option to append to existing log instead of overwriting so the latest log is overwritten. Maybe we can have the bin/solr script roll that after the process is killed?

      Attachments

        1. SOLR-7506.patch
          5 kB
          Jan Høydahl
        2. SOLR-7506.patch
          3 kB
          Jan Høydahl

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              shalin Shalin Shekhar Mangar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: