Thanks, I will try that. Currently I am trying <forkMode>always</forkMode>. It works. But very very slow. We have over a thousand tests. Regards, Jack
On Fri, Oct 3, 2008 at 4:15 PM, Matthew McCullough < [EMAIL PROTECTED]> wrote: > > You may need to increase the memory used by the surefire jvm if it is set > to > fork. > > Here's a config example: > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <version>2.3</version> > <configuration> > <includes> > <include>**/*Test.java</include> > </includes> > <forkMode>once</forkMode> > <!-- need more memory than the default for our unit tests > --> > <argLine>-Xmx1050m -XX:MaxPermSize=128M</argLine> > </configuration> > </plugin> > > > > Jinyuan Zhou-3 wrote: > > > > Hello, > > When I run a test, (mvn test) out of memory happens when run one of the > > unit > > test case methed : > > java.lang.OutOfMemoryError: Java heap space > > > > > > I did put the following . > > > > MAVEN_OPTS=-Xmx512m > > > > Can some one give a clue as which plugin is used in test phase, and what > > option can be used to increase the heap size when running test? > > Thanks, > > Jack > > > > > > -- > View this message in context: > http://www.nabble.com/mvn-test-phase-out-of-memery-issue-tp19805700p19807236.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Some people lived like they will never die and died like they have never lived
