The problem is probably not with the JVM running sbt but with the one that
sbt is forking to run your program.

See here for the relevant option:
https://github.com/apache/spark/blob/master/project/SparkBuild.scala#L186

You might try starting sbt with no arguments (to bring up the sbt console).
 You can then set javaOptions += "-Xmx1G" and afterwards try run.

Michael


On Sat, May 3, 2014 at 5:15 AM, Carter <gyz...@hotmail.com> wrote:

> Hi, thanks for all your help.
> I tried your setting in the sbt file, but the problem is still there.
>
> The Java setting in my sbt file is:
> java \
>   -Xmx1200m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=256m \
>   -jar ${JAR} \
>   "$@"
>
> I have tried to set these 3 parameters bigger and smaller, but nothing
> works. Did I change the right thing?
>
> Thank you very much.
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/sbt-sbt-run-command-returns-a-JVM-problem-tp5157p5267.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>

Reply via email to