[
https://issues.apache.org/jira/browse/SOLR-7506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15529158#comment-15529158
]
Jan Høydahl commented on SOLR-7506:
-----------------------------------
Unfortunately the JVM is not that smart. It *always* starts writing a fresh
{{solr_gc.log.0.current}} log file which is rolled into .0 without suffix. So
after a restart, history gets lost even if we try to be smart. I'm working on
something similar in SOLR-9570
> Roll over GC logs by default via bin/solr scripts
> -------------------------------------------------
>
> Key: SOLR-7506
> URL: https://issues.apache.org/jira/browse/SOLR-7506
> Project: Solr
> Issue Type: Improvement
> Components: scripts and tools
> Reporter: Shalin Shekhar Mangar
> Priority: Minor
> Fix For: 5.2, 6.0
>
>
> 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:
> {code}
> -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=20M
> {code}
> 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?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]