Is there a memory leak? Memory usage stays there after stress test and the monitoring looks weird
I made a TCP listener that accepts connections and writes bytes. Before accepting the first connection, the ram usage in task manager is 1.9MB. After accepting one single connection, it gets bumped up to 7MB. While being spammed, the ram usage hovers around 8-8.1 and is gradually going up slowly. After the spam finishes, the ram usage stays there. Is there a leak by any how? I checked my code and there don’t seem to be a leak?
Are the following dynamic slices garbage collected in go?
In the following simplified code, are the pipe.stats automatically deallocated when a new pipe is created?