Hi.

I have a test suite of 120 tests.  When each test completes (fail/pass) we
then use sqlunit to insert the result into a mysql db.  After the tests run
for about 30 mins I get the following error:


 [sqlunit] sqlunit-ant: PermGen space
 [sqlunit] PermGen space


Can't find any other logs or information other than that the test suite
stops.

BUILD FAILED
D:\perforce\qc\Projects\autotests_v2.6\3rdparties\webtest\webtest.xml:230:
The following error occurred while executing
this line:
D:\perforce\qc\Projects\autotests_v2.6\myshapeB2C_3.1\PQA.xml:52: The
following error occurred while executing this lin
:
D:\perforce\qc\Projects\autotests_v2.6\myshapeB2C_3.1\PQA_Test_Libraries.xml:24:
The following error occurred while exe
uting this line:
D:\perforce\qc\Projects\autotests_v2.6\myshapeB2C_3.1\tests\INTEGRATED_MODE\PRODINT\PRODINT.xml:20:
The following error
occurred while executing this line:
D:\perforce\qc\Projects\autotests_v2.6\myshapeB2C_3.1\tests\INTEGRATED_MODE\PRODINT\PRODINT,4016,Incompatible_AOs.xml:5
: java.lang.OutOfMemoryError: PermGen space

Total time: 34 minutes 47 seconds

D:\perforce\qc\Projects\autotests_v2.6\myshapeB2C_3.1>


This is the sqlunit script:

<?xml version="1.0"?>
<!DOCTYPE sqlunit SYSTEM "../dtd/sqlunit.dtd">
<sqlunit>
    <connection>
        <driver>com.mysql.jdbc.Driver</driver>
        <url>jdbc:mysql://10.140.84.213:3306/csspqa</url>
        <user>*****</user>
        <password>*****</password>
    </connection>
    <setup>
        <set name="${ant.bug}">
            <sql>
                <stmt>
                     INSERT INTO test_results
     ( bug_id, ip , version , application , test_id , time_stamp ,
test_result )
     VALUES
     ('${ant.bug.ID}', '${ant.p4.client}', '${ant.BuildNumber}' ,
'${ant.basepath}' , '${ant.test.ID}' , NOW(), '${ant.testresult}');
                </stmt>
            </sql>
            <result>
                <resultset id="1">
                    <row id="1">
                        <col id="1" name="BUNDLE_ID"
type="NUMERIC">${status}</col>
                    </row>
                </resultset>
            </result>
        </set>
    </setup>
    <echo name="BuildNumber" text="${ant.BuildNumber}"/>
    <echo name="test id" text="${ant.test.ID}"/>
    <echo name="test result" text="${ant.testresult}"/>
    <echo name="basepath" text="${ant.basepath}"/>
    <echo name="bug.ID" text="${ant.bug.ID}"/>


Any ideas what is causing this problem?  The problem only seems to have
appeared since we implemented this sqlunit script.


Thanks

Ian

Reply via email to