To my recollection, the Java memory settings are not propagated to the child 
process, so its getting the default. Try using the following for your memory 
settings:

http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#argLine

Cheers,
Brett

On 18/11/2009, at 10:20 AM, Benson Margulies wrote:

> In XmlSchema, I have a unit test that has been working, more or less
> unchanged, for over a year. It still works when run from Eclipse.
> 
> Tonight, launched from maven, it fails instantly with an OutOfMemory
> exception. This with MAVEN_OPTS set to -Xmx1g. Or 2g.
> 
> Changing forkMode to always has no effect.
> 
> This is maven 2.2.1.
> 
> It fails while parsing a pile of test cases into a DOM tree. There is no way
> that there is 1G of memory happening there.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to