Perf4J Logging Config Help

Posted by manyxcxi on Stack Overflow See other posts from Stack Overflow or by manyxcxi
Published on 2010-06-01T22:35:36Z Indexed on 2010/06/02 17:44 UTC
Read the original article Hit count: 400

Filed under:
|
|
|

I currently have a long running process that I am trying to analyze with Perf4J. I currently have it writing results in CSV format to its own log file using the AsyncCoalescingStatisticsAppender and a StatisticsCsvLayout on the file appender. My question is; when I try and use the --graph option from the command line (using the perf4j jar) it isn't populating the data points- it isn't populating anything. Are my appenders set incorrectly? The log file contains hundreds (sometimes thousands) of data points of about 10 different tag names.

<appender name="perfAppender" class="org.apache.log4j.FileAppender">
        <param name="File" value="perfStats.log"/>
        <layout class="org.perf4j.log4j.StatisticsCsvLayout">
        </layout>
    </appender>

    <appender name="CoalescingStatistics" class="org.perf4j.log4j.AsyncCoalescingStatisticsAppender">
            <!--
              The TimeSlice option is used to determine the time window for which
              all received StopWatch logs are aggregated to create a single
              GroupedTimingStatistics log. Here we set it to 10 seconds, overriding
              the default of 30000 ms
            -->
            <param name="TimeSlice" value="10000"/>        
         <appender-ref ref="ConsoleAppender"/>
         <appender-ref ref="CompositeRollingFileAppender"/>
         <appender-ref ref="perfAppender"/>
        </appender>

© Stack Overflow or respective owner

Related posts about java

Related posts about Performance