[improve][broker] ResourceGroupService alloc much memory even we do not use
Open
Stale
- Dominant language
- Java
- Stars
- 15.3k
- Forks
- 3.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 160
Description
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Motivation
add a switch to open resource group usage
this will use more cpu to process gc


[20221028-155041.html.zip](https://github.com/apache/pulsar/files/9886467/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?
- [X] I'm willing to submit a PR!
Contributor guide
Assessment
This issue has not been assessed yet.