Memory leak #1546
Replies: 5 comments 12 replies
-
Have you tested it with something like valgrind to know that it is actually a leak? Could also just be allocator not giving memory back to the OS immediately? For how long did you run your app? |
Beta Was this translation helpful? Give feedback.
-
Hello I have the same experience. The memory in increasing by every request. When I start the https://github.com/tokio-rs/axum/tree/main/examples/hello-world example and hit the endpoint with Any idea how to address this problem? |
Beta Was this translation helpful? Give feedback.
-
let mut files = vec![];
let mut paths = vec![]; I think you should not go to hold data. If you want to check how many files are uploaded, you can count them on the front-end and add a field to put it in the first position. |
Beta Was this translation helpful? Give feedback.
-
I'm facing a memory leak as well. Measured by the memory stats of Kubernetes dashboard which shows the |
Beta Was this translation helpful? Give feedback.
-
Same issue on actix-web and salvo, according to the post https://rustcc.cn/article?id=42f6ad67-55d6-4377-a6f6-f97e6dcc0d0e |
Beta Was this translation helpful? Give feedback.
-
Hello i am currently facing memory leak in my axum app. when i start the app my memory usage is ~600KB and with every request it goes up by ~200KB and it never stops.
here is my handler function:
also i have a middleware for user auth:
i am confused and i don`t know what to do to fix it :( .
Beta Was this translation helpful? Give feedback.
All reactions