GitHub user dhruve opened a pull request:
https://github.com/apache/spark/pull/12115
SPARK-12384 - Enables spark-clients to set the min(-Xms) and max(*.memory
config) jâ¦
## What changes were proposed in this pull request?
Currently Spark clients are started with the same memory setting for Xms
and Xms leading to reserving unnecessary higher amounts of memory.
This behavior is changed and the clients can now specify an initial heap
size using the extraJavaOptions in the config for driver,executor and am
individually.
Note, that only -Xms can be provided through this config option, if the
client wants to set the max size(-Xmx), this has to be done via the *.memory
configuration knobs which are currently supported.
## How was this patch tested?
Monitored executor and yarn logs in debug mode to verify the commands
through which they are being launched in client and cluster mode. The driver
memory was verified locally using jps -v. Setting up -Xmx parameter in the
javaExtraOptions raises exception with the info provided.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dhruve/spark impr/SPARK-12384
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12115.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #12115
----
commit ca522145ebd88a92edc45ac2a9e7bb4cddf33dd7
Author: Dhruve Ashar <[email protected]>
Date: 2016-04-01T20:34:46Z
Enables spark-clients to set the min(-Xms) and max(*.memory config) jvm
heap memory
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]