Skip to content

[improve][broker] ResourceGroupService alloc much memory even we do not use #18240

Closed

Description

@leizhiyuan

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

add a switch to open resource group usage

this will use more cpu to process gc

image

image

20221028-155041.html.zip

Solution

add a switch to open resource group usage

Alternatives

add a switch to open resource group usage

Anything else?

add a switch to open resource group usage

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. codelipenghui commented on Oct 28, 2022

    @codelipenghui
    Contributor

    @leizhiyuan I guess you might have many topics/subscriptions. And some subscriptions have many non-continues acks. I think one solution that we can try is to introduce a new flag to skip the non-continued deleted ranges stats when getting the topic stats. It's useless for ResouceGroupService.

  2. leizhiyuan commented on Oct 28, 2022

    @leizhiyuan
    ContributorAuthor

    ok

  3. codelipenghui commented on Oct 28, 2022

    @codelipenghui
    Contributor

    @leizhiyuan I think we don't need to close the issue for now. Maybe you want to push a fix for it? I think I can assign to you directly.

  4. leizhiyuan commented on Oct 29, 2022

    @leizhiyuan
    ContributorAuthor

    @leizhiyuan I think we don't need to close the issue for now. Maybe you want to push a fix for it? I think I can assign to you directly.

    ok,you can assign it to me。

  5. github-actions commented on Dec 1, 2022

    @github-actions

    The issue had no activity for 30 days, mark with Stale label.

  6. merlimat commented on Oct 24, 2026

    @merlimat
    Contributor

    Thanks @leizhiyuan for the profile. Fixed by #24859 (4.2.0, also in 4.0.8): ResourceGroupService now starts its periodic usage aggregation only when a tenant or namespace is attached to a resource group, so brokers that don't use resource groups no longer collect topic stats for it. Closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions