accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michiel Vanderlee (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-4181) Log spam regarding swappiness
Date Fri, 08 Apr 2016 21:29:25 GMT

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

Michiel Vanderlee commented on ACCUMULO-4181:
---------------------------------------------

The generic logger config, which I copied straight from the provided template, has the following:

 <appender name="A3" class="org.apache.log4j.RollingFileAppender">
     <param name="File"           value="${org.apache.accumulo.core.dir.log}/${org.apache.accumulo.core.application}_${org.apache.accumulo.core.ip.localhost.hostname}.log"/>
     <param name="MaxFileSize"    value="1000MB"/>
     <param name="MaxBackupIndex" value="10"/>
     <param name="Threshold"      value="INFO"/>
     <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="%d{ISO8601} [%-8c{2}] %-5p: %m%n"/>
     </layout>
  </appender>

  <!-- Send all logging data to a centralized logger -->
  <appender name="N1" class="org.apache.log4j.net.SocketAppender">
     <param name="remoteHost"     value="${org.apache.accumulo.core.host.log}"/>
     <param name="port"           value="${org.apache.accumulo.core.host.log.port}"/>
     <param name="application"    value="${org.apache.accumulo.core.application}:${org.apache.accumulo.core.ip.localhost.hostname}"/>
     <param name="Threshold"      value="WARN"/>
  </appender>

  <!--  If the centralized logger is down, buffer the log events, but drop them if it stays
down -->
  <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
     <appender-ref ref="N1" />
  </appender>

  <!-- Log accumulo events to the debug, normal and remote logs. -->
  <logger name="org.apache.accumulo" additivity="false">
     <level value="DEBUG"/>
     <appender-ref ref="A2" />
     <appender-ref ref="A3" />
     <appender-ref ref="ASYNC" />
  </logger>


So based on the fact that it kept logging the same message, I think it went like this:
1) Log to file & send to SocketAppender.
2) Receive log, log to file & send it to SocketAppender
3) Receive log, log to file & send it to SocketAppender
...
n) Receive log, log to file & send it to SocketAppender
repeated until infinity and beyond

> Log spam regarding swappiness
> -----------------------------
>
>                 Key: ACCUMULO-4181
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4181
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: monitor
>    Affects Versions: 1.7.1
>            Reporter: Michiel Vanderlee
>            Priority: Minor
>
> I notice that the monitor completely fills the log files with the following message:
>  "2016-04-07 05:21:12,955 [server.Accumulo] WARN : System swappiness setting is greater
than ten (30) which can cause time-sensitive operations to be delayed.  Accumulo is time sensitive
because it needs to maintain distributed lock agreement.."
> If I see this once during startup is enough, I don't need it to fill 10 log files of
a 1GB each within 3 days



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

Mime
View raw message