kt icon indicating copy to clipboard operation
kt copied to clipboard

KT built for Win10/11 is possibly leaking memory

Open gfeyer opened this issue 1 year ago • 3 comments

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,

gfeyer avatar Feb 17 '23 14:02 gfeyer