cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [1/3] git commit: Log heap pool sizes at startup. Patch by brandonwilliams, reviewed by Lyuben Todorov for CASSANDRA-6657
Date Fri, 07 Feb 2014 14:56:27 GMT
Updated Branches:
  refs/heads/cassandra-2.0 9e0700c07 -> 3d5b5c3a7
  refs/heads/trunk f8b1a9e15 -> f71ef6099


Log heap pool sizes at startup.
Patch by brandonwilliams, reviewed by Lyuben Todorov for CASSANDRA-6657


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/3d5b5c3a
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/3d5b5c3a
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/3d5b5c3a

Branch: refs/heads/cassandra-2.0
Commit: 3d5b5c3a7e37532017e910ffc680e4f42d918c30
Parents: 9e0700c
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Fri Feb 7 08:53:49 2014 -0600
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Fri Feb 7 08:53:49 2014 -0600

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/CassandraDaemon.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/3d5b5c3a/src/java/org/apache/cassandra/service/CassandraDaemon.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/CassandraDaemon.java b/src/java/org/apache/cassandra/service/CassandraDaemon.java
index 1319836..d87f6d8 100644
--- a/src/java/org/apache/cassandra/service/CassandraDaemon.java
+++ b/src/java/org/apache/cassandra/service/CassandraDaemon.java
@@ -20,6 +20,7 @@ package org.apache.cassandra.service;
 import java.io.File;
 import java.io.IOException;
 import java.lang.management.ManagementFactory;
+import java.lang.management.MemoryPoolMXBean;
 import java.net.InetAddress;
 import java.net.MalformedURLException;
 import java.net.URL;
@@ -181,6 +182,8 @@ public class CassandraDaemon
         }
      */
         logger.info("Heap size: {}/{}", Runtime.getRuntime().totalMemory(), Runtime.getRuntime().maxMemory());
+        for(MemoryPoolMXBean pool: ManagementFactory.getMemoryPoolMXBeans())
+            logger.info("{} {}: {}", pool.getName(), pool.getType(), pool.getPeakUsage());
         logger.info("Classpath: {}", System.getProperty("java.class.path"));
         CLibrary.tryMlockall();
 


Mime
View raw message