1 Reply Latest reply on Sep 7, 2012 11:48 AM by Christian Sadilek

    integration-test Profile <argline> parameter causes "Error occurred during initialization of VM"

    Sven Plath Newbie

      Hello,

       

      i ran into a Problem when i tried to do testing of the errai-bus maven archetype für learning purposes. It always failed with the following error:

       

      Error occurred during initialization of VM

      Could not reserve enough space for object heap

      Could not create the Java virtual machine.

       

      Environment:

      Used maven-command: mvn -Dorg.jboss.errai.bus.do_long_poll=false clean test -Pintegration-test

      Computer:     Intel Core i5-2520M @ 2.50GHz

                          8.00GB Ram

                          Windows7 x64

       

      I struggeled around and noticed the following line in the integration-test profile:

      <argLine>-Xmx2048m ${argLine}</argLine>

       

      After removing that line, the test ran surprisingly easily and fast. So, my question here now is:

       

      What is the intention to create such a large JVM for the test? Should i create a JIRA issue for this stuff?

       

      Regards,

      Sven