Skip to content

Instantly share code, notes, and snippets.

@amuraru
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save amuraru/9695685 to your computer and use it in GitHub Desktop.

Select an option

Save amuraru/9695685 to your computer and use it in GitHub Desktop.
HBase GC Configuration
egrep 'CMS-(re|ini)' `ls -1tr /var/log/hbase/gc.regionserver.201* | tail -1` | cut -d'=' -f4 | sort -n
grep -r ParNew `ls -1tr /var/log/hbase/gc.regionserver.201* | tail -1` | cut -d'=' -f4 | sort -n | tail -10
jmap -F -heap `jps | grep HReg | cut -f1 -d' '`
export HBASE_REGIONSERVER_OPTS="-Xms$(($HBASE_HEAPSIZE/2))m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:-CMSConcurrentMTEnabled -Xloggc:$HBASE_LOG_DIR/gc.regionserver.`date +%Y%m%d_%H%M%S`.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment