HBASE-16667 Building with JDK 8: ignoring option MaxPermSize=256m (Niels Basjes)

This commit is contained in:
Jerry He 2016-09-24 16:07:25 -07:00
parent 7ed93f8f79
commit 2765b9d9d9
6 changed files with 7 additions and 17 deletions

View File

@ -42,10 +42,6 @@
@rem @rem See TestIPv6NIOServerSocketChannel. @rem @rem See TestIPv6NIOServerSocketChannel.
set HBASE_OPTS="-XX:+UseConcMarkSweepGC" "-Djava.net.preferIPv4Stack=true" set HBASE_OPTS="-XX:+UseConcMarkSweepGC" "-Djava.net.preferIPv4Stack=true"
@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_REGIONSERVER_OPTS=%HBASE_REGIONSERVER_OPTS% "-XX:PermSize=128m" "-XX:MaxPermSize=128m"
@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
@rem set SERVER_GC_OPTS="-verbose:gc" "-XX:+PrintGCDetails" "-XX:+PrintGCDateStamps" %HBASE_GC_OPTS% @rem set SERVER_GC_OPTS="-verbose:gc" "-XX:+PrintGCDetails" "-XX:+PrintGCDateStamps" %HBASE_GC_OPTS%

View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# #
#/** #/**
# * Licensed to the Apache Software Foundation (ASF) under one # * Licensed to the Apache Software Foundation (ASF) under one
@ -42,10 +43,6 @@
# see http://hbase.apache.org/book.html#performance # see http://hbase.apache.org/book.html#performance
export HBASE_OPTS="-XX:+UseConcMarkSweepGC" export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
# 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_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"
# 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.
# This enables basic gc logging to the .out file. # This enables basic gc logging to the .out file.

View File

@ -30,7 +30,7 @@ export CLOVER_HOME=/home/jenkins/tools/clover/latest
export MAVEN_HOME=/home/jenkins/tools/maven/latest export MAVEN_HOME=/home/jenkins/tools/maven/latest
export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin: export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin:
export MAVEN_OPTS="${MAVEN_OPTS:-"-Xmx3100M -XX:-UsePerfData -XX:MaxPermSize=256m"}" export MAVEN_OPTS="${MAVEN_OPTS:-"-Xmx3100M -XX:-UsePerfData"}"
ulimit -n ulimit -n

View File

@ -91,9 +91,6 @@
<excludes> <excludes>
<exclude>${unittest.include}</exclude> <exclude>${unittest.include}</exclude>
<exclude>**/*$*</exclude> <exclude>**/*$*</exclude>
<!--Do this to prevent OOME because permgen is full seen on build.apache.org
-->
<!--<exclude>${test.exclude.pattern}</exclude>-->
</excludes> </excludes>
<redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile> <redirectTestOutputToFile>${test.output.tofile}</redirectTestOutputToFile>
<environmentVariables> <environmentVariables>
@ -174,7 +171,7 @@
<!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout. <!-- TODO: failsafe does timeout, but verify does not fail the build because of the timeout.
I believe it is a failsafe bug, we may consider using surefire --> I believe it is a failsafe bug, we may consider using surefire -->
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds> <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
<argLine>-enableassertions -Xmx${failsafe.Xmx} -XX:MaxPermSize=368m <argLine>-enableassertions -Xmx${failsafe.Xmx}
-Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled -Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled
-verbose:gc -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal</argLine> -verbose:gc -XX:+PrintCommandLineFlags -XX:+PrintFlagsFinal</argLine>
</configuration> </configuration>

View File

@ -631,7 +631,7 @@
<configuration> <configuration>
<tagsToExclude>Integration-Test</tagsToExclude> <tagsToExclude>Integration-Test</tagsToExclude>
<argLine> <argLine>
-Xmx1536m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=512m -Xmx1536m -XX:ReservedCodeCacheSize=512m
</argLine> </argLine>
<parallel>false</parallel> <parallel>false</parallel>
</configuration> </configuration>

View File

@ -1262,10 +1262,10 @@
<!--Mark our test runs with '-Dhbase.build.id' so we can identify a surefire test as ours in a process listing <!--Mark our test runs with '-Dhbase.build.id' so we can identify a surefire test as ours in a process listing
--> -->
<hbase-surefire.argLine>-enableassertions -Dhbase.build.id=${build.id} -Xmx${surefire.Xmx} <hbase-surefire.argLine>-enableassertions -Dhbase.build.id=${build.id} -Xmx${surefire.Xmx}
-XX:MaxPermSize=256m -Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true -Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true
-Djava.awt.headless=true -Djava.awt.headless=true
</hbase-surefire.argLine> </hbase-surefire.argLine>
<hbase-surefire.cygwin-argLine>-enableassertions -Xmx${surefire.cygwinXmx} -XX:MaxPermSize=256m <hbase-surefire.cygwin-argLine>-enableassertions -Xmx${surefire.cygwinXmx}
-Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true -Djava.security.egd=file:/dev/./urandom -Djava.net.preferIPv4Stack=true
"-Djava.library.path=${hadoop.library.path};${java.library.path}" "-Djava.library.path=${hadoop.library.path};${java.library.path}"
</hbase-surefire.cygwin-argLine> </hbase-surefire.cygwin-argLine>
@ -2754,7 +2754,7 @@
or you can provide the license with -Dmaven.clover.licenseLocation=/path/to/license. Committers can find or you can provide the license with -Dmaven.clover.licenseLocation=/path/to/license. Committers can find
the license under https://svn.apache.org/repos/private/committers/donated-licenses/clover/ the license under https://svn.apache.org/repos/private/committers/donated-licenses/clover/
The report will be generated under target/site/clover/index.html when you run The report will be generated under target/site/clover/index.html when you run
MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=512m" mvn clean package -Pclover site --> MAVEN_OPTS="-Xmx2048m" mvn clean package -Pclover site -->
<profile> <profile>
<id>clover</id> <id>clover</id>
<activation> <activation>