Memory leak
Closed this issue · 2 comments
nbkolchin commented
Linux-64bit, GO1.0.3
Code: https://gist.github.com/nbkolchin/5143162
Command:
$ for i in seq 0 4
; do touch $i ; done
Output:
- 2013/03/12 17:51:36 363416 385912 2686976 364 96
- 2013/03/12 17:51:36 363608 386976 2686976 387 115
- 2013/03/12 17:51:36 363784 388136 2686976 408 135
- 2013/03/12 17:51:36 363832 389056 2686976 428 154
- 2013/03/12 17:51:36 363880 389976 2686976 448 173
On each loop iteration, the amount of AllocatedAndUsed memory increases and never goes down. In "real life" application, it exceeded 1G.
"Reproducable" on MacOSX, but as I understand this is 'expected' behaviour on that platform.
howeyc commented
Whenever you get a chance could you see if what I've done works for you as well? It's in master branch.
nbkolchin commented
Problem resolved. Thank you.