[Opensim-users] Is it possible lsl list dont return memory to system ?
R.Gunther
rigun at rigutech.nl
Tue Sep 4 13:53:09 UTC 2012
I cleaned my sandbox more, after it did go up 574MB in 14 hours.
It looks like with only the latest build scripts with fixes. Memory
seems to keep pretty stable.
Its just some idea maby a direction, hard to trace back.
I think that there is some memory leak when list are created inside
(repeating events, like this.
simplified example :
default <http://wiki.secondlife.com/index.php?title=default>
{
timer <http://wiki.secondlife.com/index.php?title=touch_start>( <http://wiki.secondlife.com/index.php?title=integer>)
{
list <http://wiki.secondlife.com/index.php?title=list> a= ["abc",1,2,3.14,<0,0,0>];
llOwnerSay <http://wiki.secondlife.com/index.php?title=llOwnerSay>((string <http://wiki.secondlife.com/index.php?title=string>)a);// outcome: abc123.140000<0.000000, 0.000000, 0.000000>
}
}
I did that by mistake to, i moved the "list <http://wiki.secondlife.com/index.php?title=list> a;" out opf the timer event. Like this.
list <http://wiki.secondlife.com/index.php?title=list> a;
default <http://wiki.secondlife.com/index.php?title=default>
{
timer <http://wiki.secondlife.com/index.php?title=touch_start>( <http://wiki.secondlife.com/index.php?title=integer>)
{
a = [];
<http://wiki.secondlife.com/index.php?title=list>a= ["abc",1,2,3.14,<0,0,0>];
llOwnerSay <http://wiki.secondlife.com/index.php?title=llOwnerSay>((string <http://wiki.secondlife.com/index.php?title=string>)a);// outcome: abc123.140000<0.000000, 0.000000, 0.000000>
}
}
Then it seems to work much better with memory usage. Still testing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20120904/5668a819/attachment.html>
More information about the Opensim-users
mailing list