Open xiaomudk opened 3 months ago
Thank you for taking the time to raise this issue. However, it has not had any activity on it in the past 90 days and will be closed in 30 days if no updates occur. Please check if the main branch has already resolved the issue since it was raised. If you believe the issue is still valid and you would like input from the maintainers then please comment to ask for it to be reviewed.
Description
Hello Sarama maintainers, I'm encountering high GC pressure when consuming Kafka messages using Sarama under a 100K TPS high concurrency scenario.
pprof profile
pprof heap
After analyzing the pprof heap profile, I've identified several areas of concern related to frequent memory allocations during message decoding. Here are the key findings:
(*MessageSet).decode
(*MessageBlock).decode
(*partitionConsumer).parseMessages
Are there any optimization strategies or best practices you could recommend to reduce these allocations and mitigate the GC pressure? I'm open to suggestions on how to improve the performance in this high-concurrency scenario. Thank you for your time and assistance.
Versions
Configuration
Logs
logs: CLICK ME
``` ```
Additional Context