Skip to content
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 on Microsoft.CodeAnalysis.Scripting #41348

Closed
munozemilio opened this issue Jan 31, 2020 · 1 comment
Closed

Memory leak on Microsoft.CodeAnalysis.Scripting #41348

munozemilio opened this issue Jan 31, 2020 · 1 comment
Assignees
Labels
Milestone

Comments

@munozemilio
Copy link

Version Used:
3.1.0
Steps to Reproduce:
Memory keeps growing with time under a constant load in a asp.net core api

Expected Behavior:

Actual Behavior:

@tmat
Copy link
Member

tmat commented Feb 21, 2020

The scripting APIs do not currently support code unloading (see #41722).

If you compile a new code snippet each request then your memory will keep growing. If you can change your implementation to reuse compiled code and run it multiple times then you can avoid allocating this memory.

@tmat tmat closed this as completed Feb 21, 2020
@tmat tmat added the Resolution-By Design The behavior reported in the issue matches the current design label Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants