Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-17421

Document warnings about "MaxPermSize" parameter when building with Maven and Java 8

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0.1, 2.1.0
    • Build
    • None

    Description

      When building Spark with build/mvn or dev/run-tests, a Java warning appears repeatedly on STDERR:
      OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0

      This warning is due to build/mvn adding the -XX:MaxPermSize=512M option to MAVEN_OPTS. When compiling with Java 7, this parameter is essential. With Java 8, the parameter leads to the warning above.

      Because build/mvn adds MaxPermSize to MAVEN_OPTS, even if that environment variable doesn't contain the option, setting MAVEN_OPTS to a string that does not contain MaxPermSize has no effect.

      Attachments

        Activity

          People

            freiss Frederick Reiss
            freiss Frederick Reiss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: