Serious memory leaks!
Hi Everyone,
I have a FMS 3.5.3 server running an application I developed,My goal is to connect to a php server to get mysql query result.it work well in windows.but in linux cent os 5.3,Memory will always grow fast.
please help me!
Here is mycode(fms):
application.onAppStart = function()
{
NetServices.setDefaultGatewayUrl("http://" + application.config['server_ip'] + "/amfphp/gateway.php");
application.conn_db = NetServices.createGatewayConnection();
application.map_server = application.conn_db.getService('Server',sResult);
trace("Start ...");
application.checkid = setInterval(Check,1000);
}
sResult.onResult = function(date)
{
return;
}
function Check()
{
application.map_server.checkServer();
}
(php)
function checkServer()
{
sql_connect();
$ret = array();
$ret[] = sql_fetch_rows("select `id` from test_world limit 0,1000");
return $ret;
}
thanks!
