Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-1766

Increase default PermGen size for spark-shell

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11.0
    • 0.12.0
    • None
    • None

    Description

      Mahout spark-shell is run with default perm gen size (64MB). Taking into account that it depends on lots of external jars and the whole count of used Java classes is very large, we constantly observe spontaneous corresponding OOM exceptions.

      A hot fix from our side is to modify envelope bash script (added -XX:PermSize=512m):

      "$JAVA" $JAVA_HEAP_MAX -XX:PermSize=512m $MAHOUT_OPTS -classpath "$CLASSPATH" "org.apache.mahout.sparkbindings.shell.Main" $@
      

      Of course, more elegant solution is needed. After the applied fix, the errors had gone.

      Attachments

        Activity

          People

            andrew.musselman Andrew Musselman
            sergeant Sergey Tryuber
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: