Hi Amita

  Without any changes from your patches, I tried to add several tests cases
by copying the tests from ProgramaticConfig multiple times, and all tests
were still working fine. I only start seeing the OutOfMemory issues after
applying your changes, but I cant tell for sure what is the cause of the
OutOfMemory errors.

On 5/1/07, Amita Vadhavkar <[EMAIL PROTECTED]> wrote:

Hi ,
When I add any new test cases to DAS Unit Tests, I get the below error

testMultiSchemaCase14(org.apache.tuscany.das.rdb.test.MultiSchemaTests)
Time el
apsed: 1.382 sec  <<< ERROR!
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space

My MVN_OPTS are as below:-
set MAVEN_OPTS=-Xms256m -Xmx1024m -XX:PermSize=1024m -XX:MaxPermSize=1024m
Tried manipulating these with some +- but same error.

Also, when I removed these my newly added test cases (thinking the new
code
may have
some memory issues) and just added some pre-existing test cases a couple
of
more times
like say, just added 4 times  ProgrammaticConfigTests, to
AllCommonTests.java, I get the same error.

suite.addTest(new TestSuite(ProgrammaticConfigTests.class));
suite.addTest(new TestSuite(ProgrammaticConfigTests.class));
suite.addTest(new TestSuite(ProgrammaticConfigTests.class));
suite.addTest(new TestSuite(ProgrammaticConfigTests.class));

So, it looks like either
1) maven has some max limit of test cases beyond which it gives memory
error

Or
2) All of DAS pre-existing unit test cases have some memory leak
which crashes maven
beyond some certain number of test cases.

Any clue, please let me know, will be really helpful.

Regards,
Amita




--
Luciano Resende
http://people.apache.org/~lresende

Reply via email to