Update of /var/cvs/applications/crontab/src/org/mmbase/applications/crontab
In directory james.mmbase.org:/tmp/cvs-serv26068

Modified Files:
      Tag: MMBase-1_8
        MMBaseStatsJob.java 
Log Message:
added size of caches to stats logging


See also: 
http://cvs.mmbase.org/viewcvs/applications/crontab/src/org/mmbase/applications/crontab


Index: MMBaseStatsJob.java
===================================================================
RCS file: 
/var/cvs/applications/crontab/src/org/mmbase/applications/crontab/MMBaseStatsJob.java,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -b -r1.4 -r1.4.2.1
--- MMBaseStatsJob.java 23 Jun 2006 18:11:56 -0000      1.4
+++ MMBaseStatsJob.java 10 Apr 2008 09:18:43 -0000      1.4.2.1
@@ -18,7 +18,7 @@
  * The configuration string is one of the following
  <ul>
   <li>MEMORY: Logs free and total memory</li>
-  <li>CACHE.&lt;cache-name&gt;: Logs hits and total request of cache with 
given name</li>
+  <li>CACHE.&lt;cache-name&gt;: Logs hits,  total number of requests and size  
of cache with given name</li>
  </ul>
 In log4j.xml you may add something like this:
 <pre>
@@ -38,7 +38,7 @@
   &lt;/logger&gt;
 </pre>
  * @author Michiel Meeuwissen
- * @version $Id: MMBaseStatsJob.java,v 1.4 2006/06/23 18:11:56 michiel Exp $
+ * @version $Id: MMBaseStatsJob.java,v 1.4.2.1 2008/04/10 09:18:43 michiel Exp 
$
  */
 
 public class MMBaseStatsJob extends AbstractCronJob  {
@@ -87,7 +87,7 @@
                         if (cache == null) cache = getCache();
                         if (cache != null) {
                             int h = cache.getHits();
-                            statsLogger.service("" +  h + "\t" + (h + 
cache.getMisses()));
+                            statsLogger.service("" +  h + "\t" + (h + 
cache.getMisses()) + "\t" + cache.size());
                         }
                     }
                 };
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to