[jboss-user] [JBossCache] - Viewing replication activity

a045103 do-not-reply at jboss.com
Thu Feb 21 11:20:16 EST 2008


Greetings,

I am working with JBoss Cache as a second level hibernate cache, where Hibernate is used via Spring DAO support. 

By virtue of Hibernate logging I can tell the cache is working as expected, and that data is being replicated. However, I have not been able to figure out the right log settings to view the replication activity via the logs.

Ideally, in a two JVM cluster, I'd like to see all activity related to replication in the logs (for my own edification) -- logging related to the 2 phase commit (for REPL_SYNC), logging related to data transfer, etc.

I can glean the fact data is being replicated by setting the serialization logging to debug, but I'm really after a higher level picture of the communication between the cluster members. When replication is occurring, for example, I don't see any indication of JGroups activity.

Here's my logging configuration (this is all running in the latest GA JBoss app server).


  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  | 
  | 
  | <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
  | 
  | 
  |    <!-- A time/date based rolling appender -->
  |    <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
  |       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |       <param name="File" value="${jboss.server.log.dir}/server.log"/>
  |       <param name="Append" value="false"/>
  | 
  |       <!-- Rollover at midnight each day -->
  |       <param name="DatePattern" value="'.'yyyy-MM-dd"/>
  | 
  |       <layout class="org.apache.log4j.PatternLayout">
  |          <!-- The default pattern: Date Priority [Category] Message\n -->
  |          <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
  | 
  |       </layout>
  |    </appender>
  | 
  |    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
  |       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |       <param name="Target" value="System.out"/>
  |       <param name="Threshold" value="DEBUG"/>
  | 
  |       <layout class="org.apache.log4j.PatternLayout">
  |          <!-- The default pattern: Date Priority [Category] Message\n -->
  |          <!-- <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> -->
  |          <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
  |       </layout>
  |    </appender>
  |    
  |    <category name="org.hibernate">
  |       <priority value="DEBUG"/>
  |    </category>
  |    
  |       <category name="org.springframework">
  |       <priority value="DEBUG"/>
  |    </category>
  |    
  |     <category name="org.jgroups">
  |       <priority value="DEBUG"/>
  |    </category>
  |    
  |    <category name="org.jboss.cache">
  |       <priority value="DEBUG"/>
  |    </category>
  |    
  |    <category name="org.jboss.serial">
  |       <priority value="DEBUG"/>
  |    </category>
  |    
  |    <category name="test">
  |       <priority value="DEBUG"/>
  |    </category>
  |    
  |    <category name="org.jboss">
  |       <priority value="INFO"/>
  |    </category>
  |    
  |    <category name="com.arjuna">
  |       <priority value="INFO"/>
  |    </category>
  |    
  |    <category name="org.jnp">
  |       <priority value="INFO"/>
  |    </category>
  |    
  |    <!-- ================ -->
  |    <!-- Limit categories -->
  |    <!-- ================ -->
  | 
  |    <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
  |    <category name="org.apache">
  |       <priority value="INFO"/>
  |    </category>
  | 
  |    <!-- Limit the jacorb category to WARN as its INFO is verbose -->
  |    <category name="jacorb">
  |       <priority value="WARN"/>
  |    </category>
  |    
  |    <!-- Limit the org.quartz category to INFO as its DEBUG is verbose -->
  |    <category name="org.quartz">
  |       <priority value="INFO"/>
  |    </category>
  | 
  |    <!-- Limit the JSR77 categories -->
  |    <category name="org.jboss.management">
  |       <priority value="INFO"/>
  |    </category>
  | 
  |    <root>
  |       <appender-ref ref="CONSOLE"/>
  |       <appender-ref ref="FILE"/>
  |    </root>
  | 
  | </log4j:configuration>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131140#4131140

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131140



More information about the jboss-user mailing list