You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Milad khajavi <kh...@gmail.com> on 2016/02/13 16:34:17 UTC

Unrecognized VM option 'MaxPermSize=512M'

Hello,
When I want to compile the Spark project, the following error occurs:

milad@pc:~/workspace/source/spark$ build/mvn -DskipTests clean package
Using `mvn` from path: /home/milad/.linuxbrew/bin/mvn
Unrecognized VM option 'MaxPermSize=512M'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

What is the problem, if anyone know?


-- 
Milād Khājavi
http://blog.khajavi.ir
Having the source means you can do it yourself.
I tried to change the world, but I couldn’t find the source code.

Re: Unrecognized VM option 'MaxPermSize=512M'

Posted by Jörn Franke <jo...@gmail.com>.
Are you using JDK8?

> On 13 Feb 2016, at 16:34, Milad khajavi <kh...@gmail.com> wrote:
> 
> Hello,
> When I want to compile the Spark project, the following error occurs:
> 
> milad@pc:~/workspace/source/spark$ build/mvn -DskipTests clean package
> Using `mvn` from path: /home/milad/.linuxbrew/bin/mvn
> Unrecognized VM option 'MaxPermSize=512M'
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> 
> What is the problem, if anyone know?
> 
> 
> -- 
> Milād Khājavi
> http://blog.khajavi.ir
> Having the source means you can do it yourself.
> I tried to change the world, but I couldn’t find the source code.

Re: Unrecognized VM option 'MaxPermSize=512M'

Posted by Ted Yu <yu...@gmail.com>.
I have the following for my shell:

export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=512M
-XX:ReservedCodeCacheSize=512m"

How do you specify MAVEN_OPTS ?
Which version of Java / maven do you use ?

Cheers

On Sat, Feb 13, 2016 at 7:34 AM, Milad khajavi <kh...@gmail.com> wrote:

> Hello,
> When I want to compile the Spark project, the following error occurs:
>
> milad@pc:~/workspace/source/spark$ build/mvn -DskipTests clean package
> Using `mvn` from path: /home/milad/.linuxbrew/bin/mvn
> Unrecognized VM option 'MaxPermSize=512M'
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
>
> What is the problem, if anyone know?
>
>
> --
> Milād Khājavi
> http://blog.khajavi.ir
> Having the source means you can do it yourself.
> I tried to change the world, but I couldn’t find the source code.
>