Closed kkonevets closed 4 years ago
could you publish your code
@fafhrd91 https://github.com/kkonevets/play_rs
how to reproduce the problem?
First of all you need a big traffic coming in, not sure how to provide that for you. Than you need:
curl -sd '{
"db_name":"vk",
"keys": [2344, 45356],
"values": [[449, 6225], [2354245,568,3224,566]]
}' -H "Content-Type: application/json" -X POST http://localhost:8088/put
curl -sd '{
"db_name":"vk",
"keys": [2344],
"values": [[449, 6225]]
}' -H "Content-Type: application/json" -X POST http://localhost:8088/delete
https://github.com/kkonevets/play_rs By the way, GET query is not needed to reproduce the behaviour, pasted in case debugging needed.
the problem was with lmdb C API not with actix-web
I have a simple web service, which starts with 2Gb RAM usage. Over a day it consumes about 7Gb. Traffic is about 1 request/minute. The handle that proceed a request does not keep any State between calls. I do not use unsafe code. Htop lists that all memory is due to actix-web generated threads. Is it possible that this issue will not happen in actix-web 2.0?
I use actix-web = "1.0.9" actix-http = "0.2.4"