accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject [36/50] git commit: ACCUMULO-1595 remove code to lock jvm to ram
Date Tue, 23 Jul 2013 16:55:01 GMT
ACCUMULO-1595 remove code to lock jvm to ram


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

Branch: refs/heads/ACCUMULO-1000
Commit: b3f1155962ead8af40b63c83103120ca0b82b3f2
Parents: a943f32
Author: Eric Newton <ecn@apache.org>
Authored: Mon Jul 22 13:07:54 2013 -0400
Committer: Eric Newton <ecn@apache.org>
Committed: Mon Jul 22 13:07:54 2013 -0400

----------------------------------------------------------------------
 .../accumulo/server/tabletserver/TabletServer.java   | 15 ---------------
 1 file changed, 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/b3f11559/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletServer.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletServer.java
b/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletServer.java
index ceed0ee..d83102d 100644
--- a/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletServer.java
+++ b/server/src/main/java/org/apache/accumulo/server/tabletserver/TabletServer.java
@@ -3036,21 +3036,6 @@ public class TabletServer extends AbstractMetricsImpl implements org.apache.accu
     clientAddress = new InetSocketAddress(hostname, 0);
     logger = new TabletServerLogger(this, getSystemConfiguration().getMemoryInBytes(Property.TSERV_WALOG_MAX_SIZE));
     
-    if (getSystemConfiguration().getBoolean(Property.TSERV_LOCK_MEMORY)) {
-      String path = "lib/native/mlock/" + System.mapLibraryName("MLock-" + Platform.getPlatform());
-      path = new File(path).getAbsolutePath();
-      try {
-        System.load(path);
-        log.info("Trying to lock memory pages to RAM");
-        if (MLock.lockMemoryPages() < 0)
-          log.error("Failed to lock memory pages to RAM");
-        else
-          log.info("Memory pages are now locked into RAM");
-      } catch (Throwable t) {
-        log.error("Failed to load native library for locking pages to RAM " + path + " ("
+ t + ")", t);
-      }
-    }
-    
     try {
       AccumuloVFSClassLoader.getContextManager().setContextConfig(new ContextManager.DefaultContextsConfig(new
Iterable<Entry<String,String>>() {
         @Override


Mime
View raw message