-
When I enabled console_subscriber I notice that the cpu usage ends up dropping in Is this expected behavior? |
Beta Was this translation helpful? Give feedback.
Answered by
hds
Mar 14, 2024
Replies: 1 comment 6 replies
-
This is not expected. Are you able to share some more details about the application that you're instrumenting? Once you enable the console-subscriber, does it still perform about as well? It seems like if you're running a multi-threaded runtime, something might be blocking it (hence the much lower CPU usage). |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 thefmt::layer()
in the same configuration, it seems like maybe theconsole-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…