Open belovaf opened 1 week ago
It looks like actix-web contains a busy-loop. My system monitor shows that an actix process constantly increases the number of "Idle Wake Ups": Number of times a thread caused the system to wake up from idleness to begin executing the thread.
I tried to debug and I see that actix-server worker
threads are busy-looping.
Worker threads are constantly parked / unparked.
Also the process system call counter is constantly increasing while idle.
Expected Behavior
Actix doesn't consume cpu while idle.
Current Behavior
Actix constantly consumes 0.1% cpu while idle.
Steps to Reproduce (for bugs)
Start hello world actix server.
Context
I have tested other web frameworks: axum, ntex. They don't consume any cpu while idle as expected.
Your Environment
rustc -V
): 1.79