Roll forward to release 1.7.1 (same as 1.7.0)
[voldemort/jeffpc.git] / bin / voldemort-prod-server.sh
blob9455992945ab97bac41958f374e221fc871ed240
1 #!/bin/bash
4 # Copyright 2008-2013 LinkedIn, Inc
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
21 # Spin up the voldemort server(BDB-JE) with a production worthy JVM config
23 export VOLD_OPTS=" -server -Xms32684m -Xmx32684m -XX:NewSize=2048m -XX:MaxNewSize=2048m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:CMSInitiatingOccupancyFraction=70 -XX:SurvivorRatio=2 -XX:+AlwaysPreTouch -XX:+UseCompressedOops -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:gc.log -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime "
24 echo "WARNING: This setup spins up a kickass server for production/perftesting. Make SURE that you are running on a server class machine"
25 echo "Tip: Make sure you either disable swap or give your user permission to mlock the heap"
26 bin/voldemort-server.sh $@