-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possible memory leak #1428
Comments
@shaitao you'll need to provide us with a minimal example so we can help |
My actix server is leaking memory when It's behind nginx (using proxy_pass). And everything is fine when connecting to directly. It's like few megabytes per 3000 requests. I will work on minimal reproduction example this weekend. |
@Lesiuk is this related to your recent issue in https://github.com/actix/actix-web/issues/1446 ? |
@pythoneer yes, It's this issue and during investigation I was debugging a little a didnt found any other major leak |
wait, this issue was filed before the release of actix-rt 1.1 so can't be the same issue right? |
For me with 2.0.0 even this simple example leaks memory: HttpServer::new(|| App::new().route("/", web::get().to(HttpResponse::Ok))) Tested like this:
With above command process consumes 315M of memory, with second call 626M, with third 939M, you get the idea. Behavior is the same with both debug and release build. I think this is quite a critical issue, surprised not many people have noticed it. |
Unfortunately I cannot reproduce it. Could you give us more info? Which operating system are you using? Actix-rt version? |
Ubuntu 20.10 (development branch), actix-rt 1.1.0. |
@nazar-pc thats the reason why actix-rt 1.1.0 was yanked actix/actix-net#129 |
Yeah, but I had it in lock file, so it installed fine anyway. |
This is also likely related to #1464 |
I'm also played with basic actix http2
h2 load: |
Tenatively fixed with #1580. |
I build a server with Actix-web 2.0, and the memory was increasing with the increasing of requests. I don't know where is the problem, I just used awc(with tls), web. when I change all things to warp the problem is gone. I don't know how to find it.
The text was updated successfully, but these errors were encountered: