Maven easyb plugin java heap space settings?

Posted by vinnu on Stack Overflow See other posts from Stack Overflow or by vinnu
Published on 2010-03-02T22:01:25Z Indexed on 2010/06/01 5:03 UTC
Read the original article Hit count: 210

Filed under:
|
|
|
|

Hi, I attempted to change my heap size for maven easyb plugin http://www.easyb.org/maven-easyb-plugin/. In my easyb test I added standard code to print the heap size using the code Runtime.getFreeMemory() and Runtime.getTotalMemory().

I tried setting the MAVEN_OPTS=-Xmx1024m -Xms1024m and also set the maven opts in Maven surefire plugin. Now when I run the same class from the Junit I can see the getTotalMemory() displaying a number close 1Gig but the when the same classes are invoked from easyb plugin they do not reflect the memory size.

Shouldn't there be a way of passing JVM opts to maven easyb plugin when it runs these easyb tests? At the very minimum it should atleast pick up the MAVEN_OPTS settings from the environment.

Has someone bumped into problems like this? (A search on this group's archive does not reveal much)

© Stack Overflow or respective owner

Related posts about java

Related posts about maven-2