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

Reply via email to