[
http://jira.codehaus.org/browse/SUREFIRE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter closed SUREFIRE-304.
---------------------------------
Resolution: Incomplete
JIRA isn't for questions.
MAVEN_OPTS won't affect the memory of your surefire tests - they are in a
forked VM. The surefire documentation lists how to pass parameters to that VM.
> Out of memory with mvn test
> ---------------------------
>
> Key: SUREFIRE-304
> URL: http://jira.codehaus.org/browse/SUREFIRE-304
> Project: Maven Surefire
> Issue Type: Bug
> Environment: WINDOWS 2000, JDK1.5, JUNIT
> Reporter: Punit Mishra
> Priority: Critical
>
> I am getting an out of memory while running my Junits from mvn test. The
> MAVEN_OPTS has been specified to 512m which is more than what is needed to
> run my tests.
> When I print available memory to my tests it shows 1M to 63M only.
> Is there any other place where it picks the memory args from.
> I could see there are some junit properties that can be set but I am not sure
> where and how should I be setting those properties. I tried setting them in
> POM.xml but they are not being pickedup.
> The same tests are successfully running from within eclipse with same memory
> args as specified in MAVEN_OPTS.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira