apache / skywalking

APM, Application Performance Monitoring System
https://skywalking.apache.org/
Apache License 2.0
23.8k stars 6.51k forks source link

[BanyanDB-Server] Object Pool Tracker #12443

Closed hanahmily closed 2 months ago

hanahmily commented 3 months ago

Search before asking

Description

The underlying storage module uses multiple object pools to reduce memory usage and minimize the frequency of garbage collection. However, if certain operations do not properly release unused objects, there is a risk of pool overflow.

I propose adding a pool tracker to keep track of each pool's number and size. The testing system could use this tracker to detect potential pool leaks, and the observability module could also monitor them.

Use case

No response

Related issues

No response

Are you willing to submit a pull request to implement this on your own?

Code of Conduct

wu-sheng commented 3 months ago

This is good for increasing the operational capability. Let's do that.