New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak per execution for CompiledCode #114
Comments
From @jdhardy on November 15, 2015 17:22 Long delay, for which I'm sorry - can you provide |
From @mattomopt on November 16, 2015 14:20 Thanks for the reply. I attached the two scripts described above here. |
@jdhardy Does IronLanguages/main#1250 fix this as well? |
From @jdhardy on December 14, 2015 3:31 Haven't checked yet. The trigger seems to be a bit different than the other cases but I haven't compared it yet. |
From @mattomopt on January 4, 2016 20:28 I tried pulling and testing that fix on my own. It does not seem to help with my case. |
From @mattomopt on September 10, 2015 21:57
IronPython seems to leak memory every time I set a variable via compiled Python scripts. The memory seems to get collected if I let the CompiledCode object go out of scope, but I want to be able to reuse one CompiledCode many times because of the speed benefits. The leak does not happen when I execute the ScriptSource instead of CompiledCode. It also doesn't happen when I set the variables in the scope via ScriptScope.SetVariable instead of setting them in Python.
Setting values this way:
leaks much faster than:
I have reproduced the issue using the below program in 64-bit .NET 4.5 with both IronPython 2.7.4 and 2.7.5. The Script.py I used is similar to the first Python script above: I set 100000 dictionary entries individually. Other variations of the C# program I have tried that do not help with the leak:
If it helps, I ran the above leaking program in windbg and after many loop iterations, here are the biggest heap stats given by "!dumpheap -stat":
Copied from original issue: IronLanguages/main#1228
The text was updated successfully, but these errors were encountered: