Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-12384

Allow -Xms to be set differently then -Xmx

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.6.0
    • 2.0.0
    • Spark Core, Spark Submit, YARN
    • None

    Description

      Currently Spark automatically sets the -Xms parameter to be the same as the -Xmx parameter. We should allow the user to set this separately.

      The main use case here is if I'm running the spark-shell on a shared gateway. Many users specify a larger memory size then needed and will never use that much memory, so all its doing is preventing other users from potentially using that memory. Allowing it to be less is just more multi-tenant friendly.

      I think it makes sense to leave this for cluster mode, although if a user really wants to override I don't see why we shouldn't let them.

      Attachments

        Issue Links

          Activity

            People

              Dhruve Ashar Dhruve Ashar
              tgraves Thomas Graves
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: