hbase内存配置
修改/home/q/hbase/hbase-0.98.1-cdh5.1.0/conf/hbase-env.sh
守护进程8G1
export HBASE_HEAPSIZE=8192
Hmaster 8G1
2
3
4
5export HBASE_OPTS="Xms8g -Xmx8g -XX:NewSize=5g -XX:PermSize=256m -server -XX:SurvivorRatio=3 -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=75 -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+PrintClassHistogram -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -Xloggc:/home/q/hbase/hbase-0.98.1-cdh5.1.0/logs/gc$(hostname)-hbase.log -XX:ParallelGCThreads=10"
export HBASE_MASTER_OPTS="-Xms8g -Xmx8g -XX:NewSize=5g -XX:PermSize=256m -server -XX:SurvivorRatio=3 -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=75 -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+PrintClassHistogram -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -Xloggc:/home/q/hbase/hbase-0.98.1-cdh5.1.0/logs/gc-$(hostname)-hbase.log -XX:ParallelGCThreads=10"
HRegion 64GB
export HBASE_REGIONSERVER_OPTS="-Xms64g -Xmx64g -XX:NewSize=50g -XX:PermSize=256m -server -XX:SurvivorRatio=3 -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=75 -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+PrintClassHistogram -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -Xloggc:/home/q/hbase/hbase-0.98.1-cdh5.1.0/logs/gc-$(hostname)-hbase.log -XX:ParallelGCThreads=10"
hbase-site.xml
修改/home/q/hbase/hbase-0.98.1-cdh5.1.0/conf/hbase-site.xml
1 | zookeeper.session.timeout=60000 |
1 | zookeeper.session.timeout |