You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (Updated) (JIRA)" <ji...@apache.org> on 2012/03/29 06:49:32 UTC

[jira] [Updated] (ZOOKEEPER-1435) cap space usage of default log4j rolling policy

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt updated ZOOKEEPER-1435:
------------------------------------

    Attachment: ZOOKEEPER-1435.patch

Cleaned up the log4j.properties file. In particular set a cap on space usage of the rolling file appender (5gb) which can be configured to any limit (higher or lower). Changed the default logging level to INFO (which has been a problem in the past - users using the default, DEBUG, in production).
                
> cap space usage of default log4j rolling policy
> -----------------------------------------------
>
>                 Key: ZOOKEEPER-1435
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1435
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 3.4.3, 3.3.5, 3.5.0
>            Reporter: Patrick Hunt
>            Assignee: Patrick Hunt
>             Fix For: 3.5.0
>
>         Attachments: ZOOKEEPER-1435.patch
>
>
> Our current log4j log rolling policy (for ROLLINGFILE) doesn't cap the max logging space used. This can be a problem in production systems. See similar improvements recently made in hadoop: HADOOP-8149
> For ROLLINGFILE only, I believe we should change the default threshold to INFO and cap the max space to something reasonable, say 5g (max file size of 256mb, max file count of 20). These will be the defaults in log4j.properties, which you would also be able to override from the command line.

--
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