[ http://jira.codehaus.org/browse/SUREFIRE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89222 ]
David Roussel commented on SUREFIRE-304: ---------------------------------------- surely this is a question that should be asked in the mailing lists. Look on www.nabble.com Using MAVEN_OPTS to set -Xmx512m works for me on Surefireplugin 2.2 > 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