Skip to content

ST: Low performance when got large amount of coroutines. #1553

@NodeBoy2

Description

@NodeBoy2

Description'

Please ensure that the markdown structure is maintained.

Long running, severe memory growth, and increased close_wait on the server. Using perf to investigate, it was found that heap_delete and heap_insert are causing significant delays.

  1. SRS version: 2.0.258
  2. SRS logs:
    • Normal

Replay

How to replay bug?

Steps to reproduce the bug

1. Long-time operation/live streaming (using random values for streaming URLs, all different)

Expected behavior (Expect)

Is it because std::map<std::string, SrsSource*> SrsSource::pool is not released that causes the issue? Is there any solution available?

TRANS_BY_GPT3

Metadata

Metadata

Assignees

Labels

BugIt might be a bug.TransByAITranslated by AI/GPT.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions