From e4e704a044393062c50df6d29530f0b6853a0a6e Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Tue, 9 Oct 2012 23:12:18 +0000 Subject: [PATCH] HBASE-6940 Enable GC logging by default git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1396399 13f79535-47bb-0310-9956-ffa450edef68 --- conf/hbase-env.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/conf/hbase-env.sh b/conf/hbase-env.sh index 758bb6b9d37..253770d0a75 100644 --- a/conf/hbase-env.sh +++ b/conf/hbase-env.sh @@ -36,11 +36,10 @@ # see http://wiki.apache.org/hadoop/PerformanceTuning export HBASE_OPTS="$HBASE_OPTS -XX:+UseConcMarkSweepGC" -# Uncomment below to enable java garbage collection logging in the .out file. -# export HBASE_OPTS="$HBASE_OPTS -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps $HBASE_GC_OPTS" +export HBASE_USE_GC_LOGFILE=true -# Uncomment below (along with above GC logging) to put GC information in its own logfile (will set HBASE_GC_OPTS) -# export HBASE_USE_GC_LOGFILE=true +# Comment below to disable java garbage collection logging +export HBASE_OPTS="$HBASE_OPTS -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps $HBASE_GC_OPTS" # Uncomment below if you intend to use the EXPERIMENTAL off heap cache.