I allocated almost 6GB of RAM to the ubuntu virtual machine and got the same problem. I will go over this post and try to zoom in into the java vm settings.
meanwhile - can someone with a working ubuntu machine can specify her JVM settings? Thanks, Eyal On Sat, Sep 19, 2015 at 7:49 PM, Ted Yu <yuzhih...@gmail.com> wrote: > Please read this article: > > http://blogs.vmware.com/apps/2011/06/taking-a-closer-look-at-sizing-the-java-process.html > > Can you increase the memory given to the ubuntu virtual machine ? > > Cheers > > On Sat, Sep 19, 2015 at 9:30 AM, Eyal Altshuler <eyal.altshu...@gmail.com> > wrote: > >> Hi, >> >> I allocate 4GB for the ubuntu virtual machine, how to check what is the >> maximal available for a jvm process? >> Regarding the thread - I see it's related to building on windows. >> >> Thanks, >> Eyal >> >> On Sat, Sep 19, 2015 at 6:54 PM, Ted Yu <yuzhih...@gmail.com> wrote: >> >>> See also this thread: >>> >>> https://bukkit.org/threads/complex-craftbukkit-server-and-java-problem-could-not-reserve-enough-space-for-object-heap.155192/ >>> >>> Cheers >>> >>> On Sat, Sep 19, 2015 at 8:51 AM, Aniket Bhatnagar < >>> aniket.bhatna...@gmail.com> wrote: >>> >>>> 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 >>>>>>> >>>>>> >>>>>> >>>>> >>> >> >