{"action":"closed","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/121","labels_url":"https://api.github.com/repos/gogits/gogs/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/121/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/121/events","html_url":"https://github.com/gogits/gogs/issues/121","id":32182732,"number":121,"title":"High memory usage for commits page","user":{"login":"nuss-justin","id":6443781,"avatar_url":"https://avatars.githubusercontent.com/u/6443781?v=3","gravatar_id":"","url":"https://api.github.com/users/nuss-justin","html_url":"https://github.com/nuss-justin","followers_url":"https://api.github.com/users/nuss-justin/followers","following_url":"https://api.github.com/users/nuss-justin/following{/other_user}","gists_url":"https://api.github.com/users/nuss-justin/gists{/gist_id}","starred_url":"https://api.github.com/users/nuss-justin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuss-justin/subscriptions","organizations_url":"https://api.github.com/users/nuss-justin/orgs","repos_url":"https://api.github.com/users/nuss-justin/repos","events_url":"https://api.github.com/users/nuss-justin/events{/privacy}","received_events_url":"https://api.github.com/users/nuss-justin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gogits/gogs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/gogits/gogs/labels/feedback%20needed","name":"feedback needed","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2014-04-24T20:27:53Z","updated_at":"2015-12-10T21:31:09Z","closed_at":"2015-12-10T21:31:09Z","body":"I'm just playing with the 0.3 binaries in my free time and noticed that the memory usage starts to grow very fast when navigating to the commits page of a repo. The page itself often takes up to 10 seconds to load when having a larger repo, but the biggest problem is the memory not getting collected fast enough. After a few requests with my browser I got my memory usage to nearly 2GB and after around 30 minutes the memory is still at 600MB.\r\n\r\nHere a screenshot from the stats after looking at a commits page:\r\n![memstats](https://cloud.githubusercontent.com/assets/6443781/2794582/80885c8c-cbee-11e3-88b3-77a6e9521a49.PNG)\r\n\r\nHere a screenshot from 12 minutes later:\r\n![memstats_2](https://cloud.githubusercontent.com/assets/6443781/2794583/808ad156-cbee-11e3-933f-3f019c355780.PNG)\r\n\r\nThe repos I creating this memory usage are mirrors of torvalds/linux and gogits/gogs."}}