26.05.2010, 17:31
I have a problem with excessive memory usage by the plugin. For example, when downloading a player statistics memory usage continues to grow, and after several hours by the server memory footprint is over 200 MB.
In this way, downloading the data:
[quote] new string [128];
new dest [256];
for (new x = 0, x <500, x + +) (
format (string, sizeof (string), "SELECT Pass FROM Players WHERE Nick = 'Mlody626'");
mysql_query (string);
mysql_store_result (ConID);
mysql_fetch_row_format (dest, "|");
print (dest);
)
[/ Quote]
I'm doing something wrong or something else we need to do to the memory consumption does not grow indefinitely?
Please help
In this way, downloading the data:
[quote] new string [128];
new dest [256];
for (new x = 0, x <500, x + +) (
format (string, sizeof (string), "SELECT Pass FROM Players WHERE Nick = 'Mlody626'");
mysql_query (string);
mysql_store_result (ConID);
mysql_fetch_row_format (dest, "|");
print (dest);
)
[/ Quote]
I'm doing something wrong or something else we need to do to the memory consumption does not grow indefinitely?
Please help