python memory leak when using CPU execution provider with multiple threads #16898
Unanswered
JustinNober
asked this question in
Other Q&A
Replies: 2 comments 2 replies
-
Have you tried forcing garbage collection periodically and seeing what effect that has? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Maybe there really has a memory leak, but the way you watch memory usage is wrong. Do not look at the "free" column". The last column is what really matters. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I use onnxruntime-cpu to use multithreading on python, I found the problem of memory growth; in my continuous loop test reasoning, I found that the free memory in the cpu is getting smaller and smaller.
The same problem occurs in the threading library。
The red box is the memory I monitor,This gets smaller and smaller and doesn't release.
Beta Was this translation helpful? Give feedback.
All reactions