Skip to content

Never-ending tasks stop showing up after a while: Message too big #580

Open
@sergioabreu-g

Description

@sergioabreu-g

What crate(s) in this repo are involved in the problem?

tokio-console, console-subscriber

What is the issue?

My application has some tasks that are always running, so they never get completed. I'm using tokio-console so I can debug my process at any time, but I'm facing a huge issue here. After a while, these tasks stop showing up on tokio-console, and I get the following error in my log file: ERROR Message too big. Start with smaller retention. min_retention=1s.

As far as I know, retention should only affect how long completed tasks are held in memory, at least that's what the documentation says. Also, I'm using a custom retention of 60 seconds, but these tasks keep showing up in tokio-console for much longer (about 1 hour or maybe a bit less), so there doesn't seem to be a correlation.

Am I missing something here? Is this a limitation of the crate or am I doing something wrong?

Thank you!

How can the bug be reproduced?

  • Setup tokio-console in your project.
  • Spawn some never-ending tasks using tokio::spawn.
  • Launch the process and wait for about 1h.
  • Connect to the tokio-console server, the tasks won't show up and an error will be logged.

Logs, error output, etc

ERROR Message too big. Start with smaller retention. min_retention=1s

Versions

│ ├── console-subscriber v0.4.0
│ │ ├── console-api v0.8.0
│ ├── console-subscriber v0.4.0 (*)

tokio-console 0.1.12

Possible solution

No response

Additional context

No response

Would you like to work on fixing this bug?

yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-bugSeverity: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions