How to dynamically free memory after a service call #200
-
I stress tested the interface and after the test, the memory of the service didn't come down, and I thought "Isn't this the right way to use this, built on ntex+rbatis+tokio." |
Beta Was this translation helpful? Give feedback.
Answered by
fakeshadow
May 7, 2023
Replies: 1 comment
-
This is a common "issue" likely caused by your allocator. You can reference this reddit post for explanation and possible fixes. In short memory not always return to OS immediately when your free it. They may kept around for better memory usage. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
livingca
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a common "issue" likely caused by your allocator. You can reference this reddit post for explanation and possible fixes.
In short memory not always return to OS immediately when your free it. They may kept around for better memory usage.