Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 569F69A66 for ; Wed, 7 Mar 2012 20:23:19 +0000 (UTC) Received: (qmail 6013 invoked by uid 500); 7 Mar 2012 20:23:19 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 5990 invoked by uid 500); 7 Mar 2012 20:23:19 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 5980 invoked by uid 99); 7 Mar 2012 20:23:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2012 20:23:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2012 20:23:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 05B98EF2F for ; Wed, 7 Mar 2012 20:22:58 +0000 (UTC) Date: Wed, 7 Mar 2012 20:22:58 +0000 (UTC) From: "Patrick Hunt (Commented) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1195373864.35960.1331151778024.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1950600693.35800.1331149977562.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-8149) cap space usage of default log4j rolling policy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-8149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13224672#comment-13224672 ] Patrick Hunt commented on HADOOP-8149: -------------------------------------- Jenkins doesn't like me, but I'd still like to get some feedback if this approach is acceptable or not. > cap space usage of default log4j rolling policy > ------------------------------------------------ > > Key: HADOOP-8149 > URL: https://issues.apache.org/jira/browse/HADOOP-8149 > Project: Hadoop Common > Issue Type: Improvement > Components: conf > Reporter: Patrick Hunt > Attachments: HADOOP-8149.patch > > > I've seen several critical production issues because logs are not automatically removed after some time and accumulate. Changes to Hadoop's default log4j file appender would help with this. > I recommend we move to an appender which: > 1) caps the max file size (configurable) > 2) caps the max number of files to keep (configurable) > 3) uses rolling file appender rather than DRFA, see the warning here: > http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/DailyRollingFileAppender.html > Specifically: "DailyRollingFileAppender has been observed to exhibit synchronization issues and data loss." > We'd lose (based on the default log4j configuration) the daily rolling aspect, however increase reliability. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira