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:
Datasource definition is
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
Addendum:
=======
In the meantime I did a test with RPCManager.sendRequest with the same result.
Memory consumption with the following testcase is about 4MB per minute, increasing until the browser crashes.
Testcase for RPCManager.sendRequest
Sample JSP file
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();
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>
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
Addendum:
=======
In the meantime I did a test with RPCManager.sendRequest with the same result.
Memory consumption with the following testcase is about 4MB per minute, increasing until the browser crashes.
Testcase for RPCManager.sendRequest
Code:
"use strict";
// Functions
function f(){
RPCManager.sendRequest({
data:null,
callback: function (rpcResponse, data, rpcRequest){
// do nothing
},
actionURL: "rpc.jsp"
});
Timer.setTimeout ("f()", 250);
}
// Main
f();
Code:
<html><body>
<%@ page import = "com.isomorphic.rpc.*" %>
<%
RPCManager rpc = new RPCManager(request, response, out);
rpc.send("answer");
%>
</body></html>
Comment