{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/8832","labels_url":"https://api.github.com/repos/golang/go/issues/8832/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/8832/comments","events_url":"https://api.github.com/repos/golang/go/issues/8832/events","html_url":"https://github.com/golang/go/issues/8832","id":51288757,"number":8832,"title":"runtime : GC freeing goroutines memory but then taking it again","user":{"login":"siritinga","id":3969105,"avatar_url":"https://avatars.githubusercontent.com/u/3969105?v=3","gravatar_id":"","url":"https://api.github.com/users/siritinga","html_url":"https://github.com/siritinga","followers_url":"https://api.github.com/users/siritinga/followers","following_url":"https://api.github.com/users/siritinga/following{/other_user}","gists_url":"https://api.github.com/users/siritinga/gists{/gist_id}","starred_url":"https://api.github.com/users/siritinga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siritinga/subscriptions","organizations_url":"https://api.github.com/users/siritinga/orgs","repos_url":"https://api.github.com/users/siritinga/repos","events_url":"https://api.github.com/users/siritinga/events{/privacy}","received_events_url":"https://api.github.com/users/siritinga/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/golang/go/labels/repo-main","name":"repo-main","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/1","labels_url":"https://api.github.com/repos/golang/go/milestones/1/labels","id":905105,"number":1,"title":"Go1.5","description":"","creator":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"open_issues":245,"closed_issues":114,"state":"open","created_at":"2014-12-16T02:26:41Z","updated_at":"2015-02-09T19:21:21Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":5,"created_at":"2014-09-29T07:08:16Z","updated_at":"2015-02-09T19:21:21Z","closed_at":"2015-02-09T19:21:21Z","body":"<pre>I'm seen this in tip version:\ngo version devel +9472d0e26c23 Sun Sep 28 08:27:05 2014 -0700 linux/amd64\n\nUsing this simple program:\n<a href=\"http://play.golang.org/p/ircvbhPy3u\">http://play.golang.org/p/ircvbhPy3u</a>\n\nThere is a related issue here:\n<a href=\"https://golang.org/issue/8287\">https://golang.org/issue/8287</a>\n\nIt will immediately use 250 MB of RES memory. After about 10 minutes, the scavenger will\nfree 205 MB, showing about 45MB of RES. Ignoring that there are still 45 MB used, the\nreal problem is that after that point, the RES memory will increase slowly until it uses\n250MB of RES again!\n\nThis is what &quot;ps u&quot; shows every 10 seconds:\n\nUSER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\nuser     22626  2.5  3.1 261336 258096 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  1.6  3.1 261336 258164 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  1.0  3.1 261336 258164 pts/4   Sl+  08:34   0:00 ./tmp\n[...] 9 minutes later... \nuser     22626  0.0  3.2 261336 258792 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  3.2 261336 258792 pts/4   Sl+  08:34   0:00 ./tmp\n[Here the scavenger frees the memory]\nuser     22626  0.0  0.6 261336 48776 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.6 261336 48776 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.6 261336 48776 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.6 261336 48776 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.6 261336 48776 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.6 261336 48776 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.6 261336 48776 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.6 261336 48776 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.6 261336 48776 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.6 261336 48776 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.6 261336 48776 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.6 261336 48776 pts/4    Sl+  08:34   0:00 ./tmp\n[from here, the memory is increased little by little]\nuser     22626  0.0  0.6 261336 50384 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.8 261336 64736 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  0.9 261336 79096 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  1.1 261336 93472 pts/4    Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  1.3 261336 107840 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  1.5 261336 122216 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  1.6 261336 136600 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  1.8 261336 151000 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  2.0 261336 165336 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  2.2 261336 179744 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  2.4 261336 194080 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  2.5 261336 208512 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  2.7 261336 222848 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  2.9 261336 237184 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  3.0 261336 249728 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  3.1 261336 255520 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  3.1 261336 255520 pts/4   Sl+  08:34   0:00 ./tmp\nuser     22626  0.0  3.1 261336 255520 pts/4   Sl+  08:34   0:00 ./tmp\n[remains here, it is not freed again and not detected by the GC]</pre>"}}