Skip to content

Why does the cpu usage reported by top change when console_subscriber is enabled? #534

Answered by hds
juliusl asked this question in Q&A
Discussion options

You must be logged in to vote

When I was tinkering, these servers are just at idle listening for connections.

Were the servers idle when you recorded the 863% CPU from the first measurement? This seems like a lot for a web server not doing anything (70% also seems like a lot for a web server not doing anything).

Given that you're already filtering globally for what the console-subscriber would filter for, and that this behavior doesn't happen when you have the fmt::layer() in the same configuration, it seems like maybe the console-subscriber is slowing things down.

Do you observe this behavior immediately upon starting the application, or does it take some time? Did you have a tokio-console connected at the time you…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@juliusl
Comment options

@hds
Comment options

Answer selected by juliusl
@juliusl
Comment options

@hds
Comment options

@juliusl
Comment options

@hds
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants