HBASE-18255 Set JVM code cache size in provided configuration (Vladimir Rodionov)
Java7 defaults to 50MB (which is likely too small) and 256MB in Java8/9.
This commit is contained in:
parent
623249cf7b
commit
3a0a3fd5fe
|
@ -44,7 +44,7 @@ set HBASE_OPTS="-XX:+UseConcMarkSweepGC" "-Djava.net.preferIPv4Stack=true"
|
||||||
|
|
||||||
@rem Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
|
@rem Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
|
||||||
set HBASE_MASTER_OPTS=%HBASE_MASTER_OPTS% "-XX:PermSize=128m" "-XX:MaxPermSize=128m"
|
set HBASE_MASTER_OPTS=%HBASE_MASTER_OPTS% "-XX:PermSize=128m" "-XX:MaxPermSize=128m"
|
||||||
set HBASE_REGIONSERVER_OPTS=%HBASE_REGIONSERVER_OPTS% "-XX:PermSize=128m" "-XX:MaxPermSize=128m"
|
set HBASE_REGIONSERVER_OPTS=%HBASE_REGIONSERVER_OPTS% "-XX:PermSize=128m" "-XX:MaxPermSize=128m" "-XX:ReservedCodeCacheSize=256m"
|
||||||
|
|
||||||
@rem Uncomment below to enable java garbage collection logging for the server-side processes
|
@rem Uncomment below to enable java garbage collection logging for the server-side processes
|
||||||
@rem this enables basic gc logging for the server processes to the .out file
|
@rem this enables basic gc logging for the server processes to the .out file
|
||||||
|
|
|
@ -44,7 +44,7 @@ export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
|
||||||
|
|
||||||
# Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
|
# Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
|
||||||
export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"
|
export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"
|
||||||
export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"
|
export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=256m"
|
||||||
|
|
||||||
# Uncomment one of the below three options to enable java garbage collection logging for the server-side processes.
|
# Uncomment one of the below three options to enable java garbage collection logging for the server-side processes.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue