-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KT built for Win10/11 is possibly leaking memory #138
Comments
Adding more info: |
I ran a profiler on KT and it's actually coming from the underlying sarama library. I'll continue to trace it in Sarama. Thanks.
|
sorry for the delay, but 🎉 that you figured it out :) let me know if it'd help to upgrade sarama or bring a fix in somehow |
Hi guys!
Summary:
I'm using KT extensively on macos/linux/windows and it works great for linux and mac.
The issue is that the windows kt.exe build is leaking memory.
How to reproduce:
in Win10/11, in main repo, do a standard go build. This generates kt.exe
in cmd prompt:
kt.exe -brokers ip:port -offsets all=newest -topic topic_name
In task manager, monitor kt.exe and memory is increasing linearly, as-if all the data that is consumed from the topic is loaded into RAM and not released. It starts around 15MB and keeps on growing into the hundreds of MB
Notes:
On Ubuntu Linux and macOS the RAM usage is stable at 26MB
Any thoughts on this? I compiled with latest go version and tested on both Windows10 and Windows11.
Thanks in advance for any insights!
Best regards,
The text was updated successfully, but these errors were encountered: