This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Xms384m -Xmx2400m -XX:PermSize=384m -XX:MaxPermSize=384m -XX:MaxGCPauseMillis=10 –XX:MaxHeapFreeRatio=70 -ea -XX:+UseCompressedOOPS -Xverify:none -server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
static pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER; | |
void *f(void *p) { | |
long l; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Xmx18g -XX:NewSize=2048m | |
-XX:MaxNewSize=2048m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC | |
-XX:CMSInitiatingOccupancyFraction=70 -XX:SurvivorRatio=2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv) { | |
FILE *f; | |
char c; | |
if (f = fopen("/dev/null", "w+")) { | |
while (c = getchar()) { | |
if (!fputc(c, f)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is probably a fairly stupid benchmark, but I was curious as to | |
// how madvise would change behaviour/performance with different | |
// madvise modes. Especially, I am curious as to performance | |
// differences on Linux vs. Solaris vs. OS X. | |
#include <iostream> | |
#include <stdexcept> | |
#include <cstdlib> | |
#include <sstream> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def increment(key: String):Int = { | |
var rv:Int = -1 | |
if (client.applyUpdate(new UpdateAction[String,String] { | |
def update(storeClient: StoreClient[String,String]) { | |
val value:Versioned[String] = storeClient.get(key) | |
if (value == null) { | |
storeClient.put(key, new Versioned[String]("1")) | |
} | |
else { | |
value.setObject((value.getValue.toInt + 1).toString) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns voldemort | |
(:import (voldemort.client | |
ClientConfig SocketStoreClientFactory StoreClient UpdateAction) | |
(voldemort.versioning | |
VectorClock))) | |
(defn store-client-factory | |
([urls] (store-client-factory (new ClientConfig) urls)) | |
([#^ClientConfig client-config urls] | |
(new SocketStoreClientFactory (doto client-config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def *factory* (voldemort/store-client-factory | |
["tcp://localhost:6666"])) | |
(def *client-person* (.getStoreClient *factory* "person")) | |
(def *client-zipcode* (.getStoreClient *factory* "zipcode")) | |
(defn hello-voldemort [] | |
(.put *client-person* "alex.feinberg" { "first" "alex", | |
"last" "feinberg", | |
"zipcode" 94041 }) | |
(.put *client-zipcode* (get (.getValue (.get *client-person* "alex.feinberg")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<stores> | |
<store> | |
<name>test</name> | |
<persistence>bdb</persistence> | |
<routing>client</routing> | |
<replication-factor>1</replication-factor> | |
<required-reads>1</required-reads> | |
<required-writes>1</required-writes> | |
<key-serializer> | |
<type>string</type> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/java/voldemort/server/http/gui/ReadOnlyStoreManagementServlet.java b/src/java/voldemort/server/http/gui/ReadOnlyStoreManagementServlet.j | |
index 6b2bec1..9e5588a 100644 | |
--- a/src/java/voldemort/server/http/gui/ReadOnlyStoreManagementServlet.java | |
+++ b/src/java/voldemort/server/http/gui/ReadOnlyStoreManagementServlet.java | |
@@ -21,6 +21,7 @@ import java.io.IOException; | |
import java.util.List; | |
import java.util.Map; | |
+import javax.servlet.ServletConfig; | |
import javax.servlet.ServletException; |