actix-net: actix-rt: leaking memory in every request
I just compiled example from github and run apache benchmarks ab -n 1000000 -c 64 http://127.0.0.1:8001/test/john/index.html
and memory was constantly growing. After 1 milion requests it was 3.1 GB of heap.
I could reproduce the same on my catalina macbook pro and linux server. It’s like every request is leaking few KB’s of memory.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 30 (16 by maintainers)
Commits related to this issue
- fix: resolve actix memory leak (#2606) Pins `actix-rt` version `1.1.1` to fix the memory leak caused by https://github.com/actix/actix-net/issues/129. Resolve #2593. Test plan --------- Existing... — committed to near/nearcore by bowenwang1996 4 years ago
- Data-collector: Upgraded Actix-rt to 1.1.1 to try and resolve memory leak reported in https://github.com/actix/actix-net/issues/129 — committed to simplybusiness/Kiln by deleted user 4 years ago
- Data-collector: Upgraded Actix-rt to 1.1.1 to try and resolve memory leak reported in https://github.com/actix/actix-net/issues/129 — committed to simplybusiness/Kiln by deleted user 4 years ago
Maybe we can yank actix-rt:1.1.0 and release fixed version later on?
Thank you, I overlooked that no operator is the same as a caret. And the memory leak is fixed with this change!
version = "=1.0.0"
I agree yank it. Any point releasing the current version as
1.2.0-beta.1
for testing reasons?ping @JohnTitor, thoughts on yanking?
Because I’m still debugging and I think I found out something.
It’s working fine with actix-rt 1.0 and leaking with actix-rt 1.1.