Enable garbage collector logging

To help identify any garbage collector (GC) issues, enable GC logging in production.

  1. In Cloudera Manager, select the Solr service.
  2. Click the Configuration tab.
  3. In the Search box, type Java Configuration Options for Solr Server.
  4. Add arguments controlling GC logging behavior.
    • The minimum recommended GC logging flags are: -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+PrintGCDetails.
    • To rotate the GC logs: -Xloggc: -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles= -XX:GCLogFileSize=.