-
-
Notifications
You must be signed in to change notification settings - Fork 38
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 #140
Comments
Alternatively, if you could create a test release with #122 I could continue with my other method of calling |
We have identified the leak comes from |
the actual line that leaks in the above code is this:
I think there must be some sort of circular reference or something like that in this |
Yes, there is, jrsonnet uses garbage collection for such links. Regarding |
Thanks! The process is run in a Thread by tokio, so I just needed to run We really appreciate your rapid response! We pushing to production any day now, and this was a major issue. 😅 |
I am trying to use jrsonnet as lib in an HTTP wrapper to improve performance in a high TPS system.
However we have just deployed the service and its experiencing a memory leak.
This is the util module I created, and a test which demonstrates how I use the API.
This gets called in the following
tokio
API handler:This is my first crack at writing a system in Rust. Perhaps I am doing something wrong. Either, there a memory leak in the code above, or in
jrsonnet
itself.If I could clone
context
and supply it to the decode function I could perhaps circumvent the memory leak. However I am getting the follow error when trying to do so:Is there any obvious issue with my code?
Or is there anyway I can clone the context?
The text was updated successfully, but these errors were encountered: