zifeihan opened a new pull request #6715: URL: https://github.com/apache/skywalking/pull/6715
### Add `trace_segment_ref_limit_per_segment` configuration mechanism to avoid OOM - [ ] Add a unit test to verify that the fix works. - [x] Explain briefly why the bug exists and how to fix it. There maybe an exception in some plugins, which causes the span to fail to exit, which results in the ThreadLocal not being cleaned up, and this data of TraceSegmentRef is increasing. This configuration will constrain the memory size occupied by TraceSegmentRef and avoid OOM. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
