Skip to content
Browse files

Add VOLD_OPTS variable to override jvm settings.

  • Loading branch information...
1 parent c4982db commit ea3b89ac037f74e4943ba196527e6686bf5db336 Jay Kreps committed Jun 1, 2009
View
6 bin/build-readonly-store.sh
@@ -30,4 +30,8 @@ done
CLASSPATH=$CLASSPATH:$base_dir/dist/resources
-java -Xmx2G -server -d64 -cp $CLASSPATH voldemort.store.readonly.JsonStoreBuilder $@
+if [ -z $VOLD_OPTS ]; then
+ VOLD_OPTS="-Xmx2G -server"
+fi
+
+java $VOLD_OPTS -cp $CLASSPATH voldemort.store.readonly.JsonStoreBuilder $@
View
6 bin/run-class.sh
@@ -34,5 +34,9 @@ do
done
CLASSPATH=$CLASSPATH:$base_dir/dist/resources
+if [ -z $VOLD_OPTS ]; then
+ VOLD_OPTS="-Xmx2G -server -Dcom.sun.management.jmxremote"
+fi
+
export CLASSPATH
-java -Xmx2G -d64 -server -Dcom.sun.management.jmxremote -cp $CLASSPATH ${1} ${2} ${3} ${4} ${5} ${6} ${7}
+java $VOLD_OPTS -cp $CLASSPATH ${1} ${2} ${3} ${4} ${5} ${6} ${7}
View
6 bin/sort.sh
@@ -35,4 +35,8 @@ do
done
CLASSPATH=$CLASSPATH:$base_dir/dist/resources
-java -d64 -Xmx2G -server -cp $CLASSPATH voldemort.store.readonly.StringSorter ${1} ${2} ${3}
+if [ -z $VOLD_OPTS ]; then
+ VOLD_OPTS="-Xmx2G -server -Dcom.sun.management.jmxremote"
+fi
+
+java $VOLD_OPTS -cp $CLASSPATH voldemort.store.readonly.StringSorter ${1} ${2} ${3}
View
6 bin/voldemort-server.sh
@@ -36,4 +36,8 @@ done
CLASSPATH=$CLASSPATH:$base_dir/dist/resources
-java -d64 -Xmx2G -server -cp $CLASSPATH -Dcom.sun.management.jmxremote voldemort.server.VoldemortServer ${1}
+if [ -z $VOLD_OPTS ]; then
+ VOLD_OPTS="-Xmx2G -server -Dcom.sun.management.jmxremote"
+fi
+
+java $VOLD_OPTS -cp $CLASSPATH voldemort.server.VoldemortServer ${1}
View
2 config/single_node_cluster/config/server.properties
@@ -10,7 +10,7 @@ socket.enable=true
# BDB
bdb.sync.transactions=false
-bdb.cache.size=100MB
+bdb.cache.size=1G
# Mysql
mysql.host=localhost

0 comments on commit ea3b89a

Please sign in to comment.
Something went wrong with that request. Please try again.