{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/106","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/106/comments","events_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/106/events","html_url":"https://github.com/Microsoft/visualfsharp/issues/106","id":55525335,"number":106,"title":"Visual F# Tools leak memory while reloading solutions","user":{"login":"KevinRansom","id":5175830,"avatar_url":"https://avatars.githubusercontent.com/u/5175830?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinRansom","html_url":"https://github.com/KevinRansom","followers_url":"https://api.github.com/users/KevinRansom/followers","following_url":"https://api.github.com/users/KevinRansom/following{/other_user}","gists_url":"https://api.github.com/users/KevinRansom/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinRansom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinRansom/subscriptions","organizations_url":"https://api.github.com/users/KevinRansom/orgs","repos_url":"https://api.github.com/users/KevinRansom/repos","events_url":"https://api.github.com/users/KevinRansom/events{/privacy}","received_events_url":"https://api.github.com/users/KevinRansom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/visualfsharp/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/milestones/1","html_url":"https://github.com/Microsoft/visualfsharp/milestones/VS%202015","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/milestones/1/labels","id":1091469,"number":1,"title":"VS 2015","description":"Issues/work/PRs that are slated to go in for F# 4.0/VS 2015","creator":{"login":"latkin","id":5943573,"avatar_url":"https://avatars.githubusercontent.com/u/5943573?v=3","gravatar_id":"","url":"https://api.github.com/users/latkin","html_url":"https://github.com/latkin","followers_url":"https://api.github.com/users/latkin/followers","following_url":"https://api.github.com/users/latkin/following{/other_user}","gists_url":"https://api.github.com/users/latkin/gists{/gist_id}","starred_url":"https://api.github.com/users/latkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latkin/subscriptions","organizations_url":"https://api.github.com/users/latkin/orgs","repos_url":"https://api.github.com/users/latkin/repos","events_url":"https://api.github.com/users/latkin/events{/privacy}","received_events_url":"https://api.github.com/users/latkin/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":0,"state":"open","created_at":"2015-04-30T17:50:34Z","updated_at":"2015-05-01T20:31:15Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-01-26T19:24:55Z","updated_at":"2015-05-03T11:13:35Z","closed_at":null,"body":"Scenario:\r\n◾Disable VFPT in VS if it is installed \r\n◾Open VFPT solution (https://github.com/fsprojects/VisualFSharpPowerTools), VS occupies ~ 300MB RAM \r\n◾Repeat the following steps 15 times: (1) Switch to a new git branch (2) Reload the solution (3) Rebuild the solution \r\n◾VS now occupies ~ 1.7 GB RAM\r\n\r\nContext: \r\nWe are hunting down memory leaks in Visual F# Power Tools. It turned out FSharp.Compiler.Service (FCS) leaked memories when Xaml type providers (FsXaml) didn't dispose resources correctly. These bugs have been fixed in FCS and FsXaml. See the discussion at  https://github.com/fsharp/FSharp.Compiler.Service/issues/158. \r\n\r\nAfter bug fixing, there are still memory leaks. I think Visual F# Tools has the same issue where type providers are in use. We did profile using PerfView without enabling VFPT. Here is a diff of two snapshots where we reload and rebuild solutions twice. \r\n\r\nhttps://cloud.githubusercontent.com/assets/941060/3277997/c56876ec-f39f-11e3-8042-4840c6cffffd.png \r\n\r\nhttps://cloud.githubusercontent.com/assets/941060/3278000/13a16d6e-f3a0-11e3-97cd-b994b8086d8e.png \r\n\r\nConfiguration:\r\n* Visual Studio 2013 \r\n* Windows 7 \r\n* A recent build of Visual F# Tools 3.1.1\r\n\r\nI believe the fix should be similar to that of FCS. Here are relevant commits: \r\nhttps://github.com/fsharp/FSharp.Compiler.Service/commit/a325df24d3a1a96524742fe0946407c69b02036e \r\nhttps://github.com/fsharp/FSharp.Compiler.Service/commit/4e7c8bca24518fb9c77469fa6715d26b0eca3a63 \r\n\r\nLet me know if you need more information."},"comment":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/comments/98471251","html_url":"https://github.com/Microsoft/visualfsharp/issues/106#issuecomment-98471251","issue_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/106","id":98471251,"user":{"login":"forki","id":57396,"avatar_url":"https://avatars.githubusercontent.com/u/57396?v=3","gravatar_id":"","url":"https://api.github.com/users/forki","html_url":"https://github.com/forki","followers_url":"https://api.github.com/users/forki/followers","following_url":"https://api.github.com/users/forki/following{/other_user}","gists_url":"https://api.github.com/users/forki/gists{/gist_id}","starred_url":"https://api.github.com/users/forki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forki/subscriptions","organizations_url":"https://api.github.com/users/forki/orgs","repos_url":"https://api.github.com/users/forki/repos","events_url":"https://api.github.com/users/forki/events{/privacy}","received_events_url":"https://api.github.com/users/forki/received_events","type":"User","site_admin":false},"created_at":"2015-05-03T11:13:35Z","updated_at":"2015-05-03T11:13:35Z","body":"> We should apply the linked fix to VF# Tools.\r\n\r\nI tried to do this, but there are more commits involved. "}}