Java Mailing List Archive

http://www.java2.5341.com/

Home » Maven Users List »

mvn test phase out of memery issue

Jinyuan Zhou

2008-10-03

Replies: Find Java Web Hosting

Author LoginPost Reply
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

[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 20 seconds
[INFO] Finished at: Fri Oct 03 11:50:28 PDT 2008
[INFO] Final Memory: 11M/20M
[INFO]
------------------------------------------------------------------------

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
©2008 java2.5341.com - Jax Systems, LLC, U.S.A.