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 >