Hi Eval Can you check if your Ubuntu VM has enough RAM allocated to run JVM of size 3gb?
thanks, Aniket On Sat, Sep 19, 2015, 9:09 PM Eyal Altshuler <eyal.altshu...@gmail.com> wrote: > Hi, > > I had configured the MAVEN_OPTS environment variable the same as you wrote. > My java version is 1.7.0_75. > I didn't customized the JVM heap size specifically. Is there an additional > configuration I have to run besides the MAVEN_OPTS configutaion? > > Thanks, > Eyal > > On Sat, Sep 19, 2015 at 5:29 PM, Ted Yu <yuzhih...@gmail.com> wrote: > >> Can you tell us how you configured the JVM heap size ? >> Which version of Java are you using ? >> >> When I build Spark, I do the following: >> >> export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=512M >> -XX:ReservedCodeCacheSize=512m" >> >> Cheers >> >> On Sat, Sep 19, 2015 at 5:31 AM, Eyal Altshuler <eyal.altshu...@gmail.com >> > wrote: >> >>> Hi, >>> Trying to build spark in my ubuntu virtual machine, I am getting the >>> following error: >>> >>> "Error occurred during initialization of VM >>> Could not reserve enough space for object heap >>> Error: could not create the Java Virtual Machine. >>> Error: A fatal exception has occurred. Program will exit". >>> >>> I have configured the JVM heap size correctly. >>> >>> How can I fix it? >>> >>> Thanks, >>> Eyal >>> >> >> >