-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SPARK-8776] Increase the default MaxPermSize #7196
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
Conversation
Merged build triggered. |
Merged build started. |
Test build #36426 has started for PR 7196 at commit |
Merged build triggered. |
Merged build started. |
Test build #36428 has started for PR 7196 at commit |
@@ -206,7 +206,7 @@ object SparkBuild extends PomBuild { | |||
fork := true, | |||
outputStrategy in run := Some (StdoutOutput), | |||
|
|||
javaOptions ++= Seq("-Xmx2G", "-XX:MaxPermSize=1g"), | |||
javaOptions ++= Seq("-Xmx2G", "-XX:MaxPermSize=256m"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marmbrus This setting only affect sparkShell and sparkSql, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and probably the tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait, why do we want to lower it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just want to align it with what happens when you run the spark-shell normally.
Test build #36426 has finished for PR 7196 at commit
|
Merged build finished. Test FAILed. |
test this please. |
Merged build triggered. |
Merged build started. |
Test build #36438 has started for PR 7196 at commit |
Test build #36428 has finished for PR 7196 at commit
|
Merged build finished. Test FAILed. |
Test build #36438 has finished for PR 7196 at commit
|
Merged build finished. Test FAILed. |
retest this please |
Merged build triggered. |
Merged build started. |
Test build #36460 has started for PR 7196 at commit |
@@ -194,7 +194,7 @@ private void testCmdBuilder(boolean isDriver) throws Exception { | |||
if (isDriver) { | |||
assertEquals("-XX:MaxPermSize=256m", arg); | |||
} else { | |||
assertEquals("-XX:MaxPermSize=128m", arg); | |||
assertEquals("-XX:MaxPermSize=256m", arg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrewor14 What does isDriver
do at here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it literally just says give more perm space for the driver than executors. This change is probably OK.
Merged build triggered. |
Merged build started. |
Test build #36467 has started for PR 7196 at commit |
Test build #36460 has finished for PR 7196 at commit
|
Merged build finished. Test FAILed. |
Test build #36467 has finished for PR 7196 at commit
|
Merged build finished. Test PASSed. |
OK. I am merging it to master and branch 1.4. |
I am increasing the perm gen size to 256m. https://issues.apache.org/jira/browse/SPARK-8776 Author: Yin Huai <[email protected]> Closes #7196 from yhuai/SPARK-8776 and squashes the following commits: 60901b4 [Yin Huai] Fix test. d44b713 [Yin Huai] Make sparkShell and hiveConsole use 256m PermGen size. 30aaf8e [Yin Huai] Increase the default PermGen size to 256m. (cherry picked from commit f743c79) Signed-off-by: Yin Huai <[email protected]>
@@ -194,7 +194,7 @@ private void testCmdBuilder(boolean isDriver) throws Exception { | |||
if (isDriver) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this condition then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not worth another PR since it's already merged
I am increasing the perm gen size to 256m.
https://issues.apache.org/jira/browse/SPARK-8776