Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2778

Delete PermSize / MaxPermsize options, no longer support by Java 8

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.2.0
    • 1.2.1
    • build
    • None

    Description

      After upgrading Java to 8, there are warning messages like following:

      ......
      + export 'MAVEN_OPTS=-Xmx1500m -Xms1500m -XX:MaxPermSize=256m'
      + MAVEN_OPTS='-Xmx1500m -Xms1500m -XX:MaxPermSize=256m'
      + mvn -Divy.home=/var/lib/jenkins/.ivy2 -Dsbt.ivy.home=/var/lib/jenkins/.ivy2 -Duser.home=/var/lib/jenkins -Drepo.maven.org= -Dreactor.repo=file:///var/lib/jenkins/.m2/repository -Pscala-2.11 -Pbuild-distr -DskipTests clean package
      OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
      ......
      

      And the others:

      $ grep -r MaxPermSize ./
      .//bigtop-bigpetstore/bigpetstore-mapreduce/build.gradle:            jvmArgs '-XX:MaxPermSize=256m'
      .//bigtop-bigpetstore/bigpetstore-mapreduce/src/test/java/org/apache/bigtop/bigpetstore/generator/TestPetStoreTransactionGeneratorJob.java: * run this test with vm options -XX:MaxPermSize=256m -Xms512m -Xmx1024m
      .//bigtop-ci/jenkins/jobsCreator.groovy:// export JAVA_OPTS="-Xmx1536m -Xms256m -XX:MaxPermSize=256m"
      .//bigtop-ci/jenkins/jobsCreator.groovy:// export MAVEN_OPTS="-Xmx1536m -Xms256m -XX:MaxPermSize=256m"
      .//bigtop-packages/src/common/ambari/do-component-build:export _JAVA_OPTIONS="-Xmx2048m -XX:MaxPermSize=512m -Djava.awt.headless=true"
      .//bigtop-packages/src/common/apex/do-component-build:export MAVEN_OPTS="-XX:PermSize=1024m -XX:MaxPermSize=1024m"
      .//bigtop-packages/src/common/flume/do-component-build:export MAVEN_OPTS="-Xmx1536m -Xms256m -XX:MaxPermSize=256m"
      .//bigtop-packages/src/common/hama/do-component-build:export MAVEN_OPTS="-XX:PermSize=1024m -XX:MaxPermSize=1024m"
      .//bigtop-packages/src/common/hive/do-component-build:export MAVEN_OPTS="-Xmx1500m -Xms1500m -XX:MaxPermSize=256m"
      .//bigtop-packages/src/common/ignite-hadoop/do-component-build:export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M"
      .//bigtop-packages/src/common/kafka/do-component-build:export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=512m -XX:PermSize=1024m -XX:MaxPermSize=1024m"
      .//bigtop-packages/src/common/oozie/do-component-build:export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m"
      .//bigtop-packages/src/common/spark1/do-component-build:export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=512m -XX:PermSize=1024m -XX:MaxPermSize=1024m"
      .//bigtop-packages/src/common/zeppelin/do-component-build:export MAVEN_OPTS="-Xmx1500m -Xms1500m -XX:MaxPermSize=256m"
      .//bigtop-packages/src/common/zeppelin/zeppelin-env.sh:# export ZEPPELIN_MEM            		# Zeppelin jvm mem options Default -Xms1024m -Xmx1024m -XX:MaxPermSize=512m
      .//bigtop-packages/src/common/zeppelin/zeppelin-env.sh:# export ZEPPELIN_INTP_MEM       		# zeppelin interpreter process jvm mem options. Default -Xms1024m -Xmx1024m -XX:MaxPermSize=512m
      .//build/hadoop/rpm/BUILD/hadoop-2.8.0-src/hadoop-project/pom.xml:    <maven-surefire-plugin.argLine>-Xmx2048m -XX:MaxPermSize=768m -XX:+HeapDumpOnOutOfMemoryError</maven-surefire-plugin.argLine>
      .//CHANGES.txt:    * [BIGTOP-2240] - add -XX:PermSize=1024m -XX:MaxPermSize=1024m to build environment
      .//src/site/xdoc/release-notes.xml:  <li>[<a href='https://issues.apache.org/jira/browse/BIGTOP-2240'>BIGTOP-2240</a>] - add -XX:PermSize=1024m -XX:MaxPermSize=1024m to build environment</li>
      

      Attachments

        1. 55e8bd2faf39bb30a868e9edbe78cfd30062a69f.patch
          9 kB
          Arnaud Launay
        2. BIGTOP-2778.patch
          346 kB
          Arnaud Launay

        Issue Links

          Activity

            People

              asl Arnaud Launay
              warwithin YoungWoo Kim
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: