Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] [SPARK-17421] Don't use -XX:MaxPermSize option when Java version >= 8 #14986

Closed
wants to merge 3 commits into from

Conversation

frreiss
Copy link
Contributor

@frreiss frreiss commented Sep 6, 2016

What changes were proposed in this pull request?

Modifies the build/mvn and build/sbt-launch-lib.bash scripts so that they check the Java version and omit the -XX:MaxPermSize=512M option for Java versions >= 8.

How was this patch tested?

Ran the build on Linux and Mac with Java 7 and 8, from build/mvn and dev/run-tests. Also tested Java 8 with JAVA_7_HOME pointing to a Java 7 installation.

Currently, dev/run-tests has a few remaining instances of the MaxPermSize warning, apparently due to another code path to spawning a JVM. Keeping this PR as a WIP until the output of dev/run-tests is completely clean.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@srowen
Copy link
Member

srowen commented Sep 7, 2016

If you're just solving the warning, I don't think this extra complexity is worthwhile. Java 7 support will go away soon anyway.

@frreiss
Copy link
Contributor Author

frreiss commented Sep 7, 2016

Make sense. I will close this PR and just add a clarification to the documentation.

@frreiss frreiss closed this Sep 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants