Hacker News new | comments | show | ask | jobs | submit login
Memory leak in Go http standard library? (stackoverflow.com)
10 points by ancarda 1374 days ago | hide | past | web | 7 comments | favorite

Stack 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.

I 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.

https://groups.google.com/forum/#!forum/golang-nuts is the best place to ask Go related questions, not HN.

I would argue that a serious memory leak in one of the core functions of such a popular and trending language is news worthy.

It's highly unlikely that there is a memory leak.

I've been running the code he posted with ApacheBench and I'm not seeing any issues.

Go provides very adequate profiling tools for debugging this type of problem.


FWIW, I did `ab -n 1million -c 100` with your program on Windows/amd64 and memory grew from from 3.4MB to 3.9MB.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact