[ 
https://issues.apache.org/jira/browse/SOLR-8232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14994457#comment-14994457
 ] 

Upayavira commented on SOLR-8232:
---------------------------------

The log entries I had were just those of a busy server. Nothing going wrong.

We aren't redirecting anything away, we're reducing duplication. Everything is 
logged already. We're just making sure it is logged somewhere that won't cause 
other problems.

If we decided nothing is going to go to the console, it makes sense not to 
create the console log file, as, having an empty log file gives a false sense 
of security when the *other* log file could be full of errors.

> bin/solr does not rotate console log file
> -----------------------------------------
>
>                 Key: SOLR-8232
>                 URL: https://issues.apache.org/jira/browse/SOLR-8232
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 5.3
>            Reporter: Upayavira
>            Priority: Minor
>
> The bin/solr script, when started with bin/solr start, uses this command to 
> start Solr:
> {code} nohup "$JAVA" "${SOLR_START_OPTS[@]}" $SOLR_ADDL_ARGS -jar start.jar \
>         "-XX:OnOutOfMemoryError=$SOLR_TIP/bin/oom_solr.sh $SOLR_PORT 
> $SOLR_LOGS_DIR" "${SOLR_JETTY_CONFIG[@]}" \
>         1>"$SOLR_LOGS_DIR/solr-$SOLR_PORT-console.log" 2>&1 & echo $! > 
> "$SOLR_PID_DIR/solr-$SOLR_PORT.pid"
> {code}
> This sends console output to stdout, with no means of rotating the log file, 
> meaning it will eventually fill the drive unless restarted.
> I would propose that stdout be written to dev/null and we use proper means 
> for handling logging, which can do proper log rotation as configured by the 
> user.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to