accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1302468 - /incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletServer.java
Date Mon, 19 Mar 2012 14:22:21 GMT
Author: ecn
Date: Mon Mar 19 14:22:21 2012
New Revision: 1302468

URL: http://svn.apache.org/viewvc?rev=1302468&view=rev
Log:
ACCUMULO-468 warn if we use 95% of maximum memory, not the current memory

Modified:
    incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletServer.java

Modified: incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletServer.java
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletServer.java?rev=1302468&r1=1302467&r2=1302468&view=diff
==============================================================================
--- incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletServer.java
(original)
+++ incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletServer.java
Mon Mar 19 14:22:21 2012
@@ -273,7 +273,7 @@ public class TabletServer extends Abstra
       gcTimeIncreasedCount = 0;
     } else {
       gcTimeIncreasedCount++;
-      if (gcTimeIncreasedCount > 3 && mem < rt.totalMemory() * 0.05) {
+      if (gcTimeIncreasedCount > 3 && mem < rt.maxMemory() * 0.05) {
         log.warn("Running low on memory");
         gcTimeIncreasedCount = 0;
       }



Mime
View raw message