5 ms·
Memory leak in Go http standard library?
- mseepgood 13y agohttps://groups.google.com/forum/#!forum/golang-nuts https://groups.google.com/forum/#!forum/golang-nuts is the best place to ask Go related questions, not HN.
- egeozcan 13y agoI would argue that a serious memory leak in one of the core functions of such a popular and trending language is news worthy.
- tptacek 13y agoStack Overflow questions with interesting answers are good bets for HN, but Stack Overflow questions about individual bugs with no answers aren't; they seem more like attempts to game Stack Overflow, and, at the very least, crud up HN. I actually flagged this.
- ancarda 13y agoI didn't think it would be interpreted that way. My bad. It seems like it's not a leak in the http library, just allocating memory and not releasing it sooner than expected.
- regecks 13y agoGo provides very adequate profiling tools for debugging this type of problem. http://blog.golang.org/profiling-go-programs http://blog.golang.org/profiling-go-programs FWIW, I did `ab -n 1million -c 100` with your program on Windows/amd64 and memory grew from from 3.4MB to 3.9MB.
- deleted 13y ago[deleted]