jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chet...@apache.org
Subject svn commit: r1497317 - in /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak: cache/CacheStats.java plugins/mongomk/MongoMicroKernelService.java
Date Thu, 27 Jun 2013 11:58:24 GMT
Author: chetanm
Date: Thu Jun 27 11:58:24 2013
New Revision: 1497317

URL: http://svn.apache.org/r1497317
Log:
OAK-863 - Enable stats for various caches used in Oak by default

-- Enhancing CacheStats.toString
-- Registering Node Children cachestats instead of duplicate registration of Node cache

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/cache/CacheStats.java
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMicroKernelService.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/cache/CacheStats.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/cache/CacheStats.java?rev=1497317&r1=1497316&r2=1497317&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/cache/CacheStats.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/cache/CacheStats.java
Thu Jun 27 11:58:24 2013
@@ -125,10 +125,15 @@ public class CacheStats implements Cache
     public String cacheInfoAsString() {
         return Objects.toStringHelper("CacheStats")
                 .add("hitCount", getHitCount())
+                .add("hitRate", getHitRate())
                 .add("missCount", getMissCount())
+                .add("missRate", getMissRate())
+                .add("requestCount", getRequestCount())
+                .add("loadCount", getLoadCount())
                 .add("loadSuccessCount", getLoadSuccessCount())
-                .add("lLoadExceptionCount", getLoadExceptionCount())
+                .add("loadExceptionCount", getLoadExceptionCount())
                 .add("totalLoadTime", getTotalLoadTime())
+                .add("averageLoadPenalty", getAverageLoadPenalty())
                 .add("evictionCount", getEvictionCount())
                 .add("elementCount", getElementCount())
                 .add("totalWeight", humanReadableByteCount(estimateCurrentWeight(), true))

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMicroKernelService.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMicroKernelService.java?rev=1497317&r1=1497316&r2=1497317&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMicroKernelService.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMicroKernelService.java
Thu Jun 27 11:58:24 2013
@@ -119,7 +119,7 @@ public class MongoMicroKernelService {
                     CacheStatsMBean.class,
                     mk.getNodeChildrenCacheStats(),
                     CacheStatsMBean.TYPE,
-                    mk.getNodeCacheStats().getName())
+                    mk.getNodeChildrenCacheStats().getName())
         );
         registrations.add(
             registerMBean(wb,



Mime
View raw message