I have seen a continuous log getting printed in the Message Broker of a Stratos setup I have (due to no subscribers available for a certain topic). But not in Stratos instance. For the MB logs (one is an INFO and the other is a WARN), I modified the log4j.properties to change log level of the relevant classes.
Jeffrey, Can you post some of the frequently printed logs? On Mon, Jun 30, 2014 at 12:16 PM, Isuru Perera <isu...@wso2.com> wrote: > We usually use daily rolling file appenders for log files. Did you check > what logs were printed more frequently? Perhaps we should fix the code to > change levels of log messages. > > > On Sun, Jun 29, 2014 at 1:45 PM, Imesh Gunaratne <im...@apache.org> wrote: > >> Hi Jeffrey, >> >> A great finding! Did this occur while running Stratos in single JVM mode >> without having any DEBUG level logs? >> Please send these changes to both master and 4.0.0 branches. >> >> Thanks >> >> >> On Fri, Jun 27, 2014 at 7:52 PM, Jeffrey Nguyen (jeffrngu) < >> jeffr...@cisco.com> wrote: >> >>> Hi, >>> >>> In our Stratos deployment, we experienced issue where wso2carbon.log >>> file grew as much as 13 GB causing disk full and instance reboot and >>> Stratos inaccessible. We're deploying Stratos using default profile. To >>> fix this issue, we modified log4j.properties with the changes listed below. >>> >>> Please let me know if it's okay to push this changes upstream. If >>> so, which branch(es) should the changes be checked in? >>> >>> Thanks, >>> -Jeffrey >>> >>> >>> diff --git >>> a/products/stratos/modules/distribution/src/main/conf/log4j.properties >>> b/products/stratos/modules/distribution/src >>> index a85d346..bb37679 100644 >>> --- >>> a/products/stratos/modules/distribution/src/main/conf/log4j.properties >>> +++ >>> b/products/stratos/modules/distribution/src/main/conf/log4j.properties >>> @@ -113,7 +113,9 @@ log4j.appender.CARBON_MEMORY.threshold=DEBUG >>> >>> >>> # CARBON_LOGFILE is set to be a DailyRollingFileAppender using a >>> PatternLayout. >>> -log4j.appender.CARBON_LOGFILE=org.apache.log4j.DailyRollingFileAppender >>> +log4j.appender.CARBON_LOGFILE=org.apache.log4j.RollingFileAppender >>> +log4j.appender.CARBON_LOGFILE.MaxFileSize=10000KB >>> +log4j.appender.CARBON_LOGFILE.MaxBackupIndex=10 >>> # Log file will be overridden by the configuration setting in the DB >>> # This path should be relative to WSO2 Carbon Home >>> >> >> >> >> -- >> Imesh Gunaratne >> >> Technical Lead, WSO2 >> Committer & PPMC Member, Apache Stratos >> > > > > -- > Isuru Perera > Senior Software Engineer | WSO2, Inc. | http://wso2.com/ > Lean . Enterprise . Middleware > > about.me/chrishantha > -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446