-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. @andrewor14 What does There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
} | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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 commentThe 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 commentThe 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 commentThe 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. |
||
|
||
sparkShell := { | ||
(runMain in Compile).toTask(" org.apache.spark.repl.Main -usejavacp").value | ||
|
@@ -299,7 +299,7 @@ object SQL { | |
object Hive { | ||
|
||
lazy val settings = Seq( | ||
javaOptions += "-XX:MaxPermSize=1g", | ||
javaOptions += "-XX:MaxPermSize=256m", | ||
// Specially disable assertions since some Hive tests fail them | ||
javaOptions in Test := (javaOptions in Test).value.filterNot(_ == "-ea"), | ||
// Multiple queries rely on the TestHive singleton. See comments there for more details. | ||
|
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