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

Roll over GC logs by default via bin/solr scripts

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3, 7.0
    • Component/s: scripts and tools
    • Labels:

      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

        Issue Links

          Activity

            People

            • Assignee:
              janhoy Jan Høydahl
              Reporter:
              shalin Shalin Shekhar Mangar

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment