-
Notifications
You must be signed in to change notification settings - Fork 17
Presto: Fix Java memory config #115
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 |
|---|---|---|
|
|
@@ -97,6 +97,11 @@ EOF | |
| # optimizer.default-filter-factor-enabled=true | ||
| COORD_CONFIG="${CONFIG_DIR}/etc_coordinator/config_native.properties" | ||
| sed -i 's/\#optimizer/optimizer/g' ${COORD_CONFIG} | ||
| elif [[ "${VARIANT_TYPE}" == "java" ]]; then | ||
| # for Java variant, hard-wire the JVM heap sizes to 24GB | ||
| JVM_CONFIG="${CONFIG_DIR}/etc_common/jvm.config" | ||
| sed -i 's/Xmx.*G/Xmx24G/' ${JVM_CONFIG} | ||
| sed -i 's/Xms.*G/Xms24G/' ${JVM_CONFIG} | ||
|
Contributor
Author
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. This resets the JVM configs to 24GB overwriting the auto-config, so that there's no mismatch with the separately-hard-wired other memory configs in Java mode.
Contributor
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. Why do we have to use fixed values in the Java config files?
Contributor
Author
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. The values in the other config files are fixed. The auto-config PR broke that by having the JVM heap be auto when the rest were hard-wired, and that was unstable. I was never able to get auto-config stable with Java, and when I asked at the time, the consensus was that I shouldn't spend any more time on it as long as it worked with small SFs as a smoke test. |
||
| fi | ||
|
|
||
| # success message | ||
|
|
||
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.
Not sure how (1) I broke this, and (2) didn't find it before landing #109