Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Possible memory leak in datasource.fetchData

$
0
0
Hello Isomorphic!

I am using Smartclient v9.0p_2014-01-23/PowerEdition Deployment (built 2014-01-23)
Browsers IE11, Chrome 37.

In a long running application which fetches data every second, I noticed that memory consumption increases constantly.

See the following testcase:

Code:

"use strict";
// Functions
function f(){
        memorytest.fetchData(
                null,
                callback,
                {operationId:"SQL"}
        );
        Timer.setTimeout (f, 1000);
}

function callback (dsRequest, data, dsResponse) {
        // do nothing
}

// Main
f();

Datasource definition is
Code:

<DataSource
        schema="dbo"
        dbName="tooltronic"
        ID="memorytest"
        tableName="measurement"
        serverType="sql"
>
    <fields>
        <field name="measurementId"                type="integer"        />
                <field name="rawData"                  type="text"/>
    </fields>
       
        <operationBindings>
                <operationBinding operationType="fetch" operationId="SQL">
                        <customSQL>        select TOP 500 * from dbo.measurement
                        </customSQL>
                </operationBinding>
        </operationBindings>       
</DataSource>

rawdata is a string with about 10,000 chars.

Memory consumption is increasing until the browser crashes.
If the select statement results in an emty recordset memory is stable.

Please investigate or give me a hint if something has to be changed.

Best regards
John

Viewing all articles
Browse latest Browse all 4756

Trending Articles