mrproliu opened a new issue, #13522: URL: https://github.com/apache/skywalking/issues/13522
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues. ### Apache SkyWalking Component BanyanDB (apache/skywalking-banyandb) ### What happened When I stress-test with write trace data in the BanyanDB cluster, I get an OOM at the data node. Here is the screen of the liaison and data nodes. <img width="1674" height="644" alt="Image" src="https://github.com/user-attachments/assets/3e7cf217-da2b-49db-885a-e9a46dc94163" /> <img width="1662" height="702" alt="Image" src="https://github.com/user-attachments/assets/16442b96-a45f-434d-bd22-7ca143d5718d" /> I see there are some warning logs at the data node: ``` {"level":"info","module":"SERVER-QUEUE-SUB","session_id":"sync-1758874821920614384","topic":"v1:trace-part-sync","total_parts":327,"time":"2025-09-26T08:20:21Z","message":"started chunked sync session"} {"level":"info","module":"SERVER-QUEUE-SUB","session_id":"sync-1758874821920614384","success":true,"bytes_received":275331039,"duration_ms":3770,"time":"2025-09-26T08:20:25Z","message":"completed chunked sync session"} {"level":"warn","module":"ZIPKINTRACE.SEGID-20251004.SHARD0","beforeTotalCount":181194,"afterTotalCount":181194,"beforePartCount":180,"elapsed":132073.705797,"time":"2025-09-26T08:20:26Z","message":"background merger takes too long"} {"level":"info","module":"SERVER-QUEUE-SUB","session_id":"sync-1758874925024020203","success":true,"bytes_received":262093978,"duration_ms":3835,"time":"2025-09-26T08:22:08Z","message":"completed chunked sync session"} {"level":"warn","module":"MEMORY-PROTECTOR","used":"3.6 GB","limit":"3.2 GB","time":"2025-09-26T08:22:09Z","message":"memory usage exceeds limit"} {"level":"warn","module":"MEMORY-PROTECTOR","used":"3.7 GB","limit":"3.2 GB","time":"2025-09-26T08:22:14Z","message":"memory usage exceeds limit"} ``` Here is the related heap profiling dump: [heap-data.zip](https://github.com/user-attachments/files/22556273/heap-data.zip) ### What you expected to happen No OOM Kill at the data node. ### How to reproduce 1. Starting a 2 liaison and 2 data node cluster. 2. Keep writing trace data. ### Anything else _No response_ ### Are you willing to submit a pull request to fix on your own? - [ ] Yes I am willing to submit a pull request on my own! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
