{"action":"closed","number":443,"pull_request":{"url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/pulls/443","id":47812529,"html_url":"https://github.com/fsharp/FSharp.Compiler.Service/pull/443","diff_url":"https://github.com/fsharp/FSharp.Compiler.Service/pull/443.diff","patch_url":"https://github.com/fsharp/FSharp.Compiler.Service/pull/443.patch","issue_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/443","number":443,"state":"closed","locked":false,"title":"Add ability to downsize caches in response to a max-memory signal","user":{"login":"dsyme","id":7204669,"avatar_url":"https://avatars.githubusercontent.com/u/7204669?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyme","html_url":"https://github.com/dsyme","followers_url":"https://api.github.com/users/dsyme/followers","following_url":"https://api.github.com/users/dsyme/following{/other_user}","gists_url":"https://api.github.com/users/dsyme/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyme/subscriptions","organizations_url":"https://api.github.com/users/dsyme/orgs","repos_url":"https://api.github.com/users/dsyme/repos","events_url":"https://api.github.com/users/dsyme/events{/privacy}","received_events_url":"https://api.github.com/users/dsyme/received_events","type":"User","site_admin":false},"body":"Make FCS automatically downsize caches when a maximum allocated memory threshold memory is reached.\r\n\r\nThis is somewhat experimental but may be the best solution to the \"Visual Studio grinds to a complete halt\" issue discussed here: https://github.com/fsprojects/VisualFSharpPowerTools/issues/1160#issuecomment-148352542\r\n\r\nThe default threshold is 1.7GB of allocated managed memory in a process.  This corresponds to a managed memory size of around 2.5GB.  When this happens, the \"strong\" values for keeping background project builds are reduced to size 1 for the remainder of the lifetime of the FSharpChecker object.  In practice this will still make Visual Studio F# Power Tools usable, but some operations like renaming across multiple projects may take longer.\r\n\r\nReducing the FCS strong cache sizes does _not_ guarantee there will be enough memory to continue operations - even holding one project strongly may exceed a process memory budget.  It just means FCS may hold less memory strongly.\r\n","created_at":"2015-10-15T16:51:00Z","updated_at":"2015-10-15T17:15:58Z","closed_at":"2015-10-15T17:15:58Z","merged_at":"2015-10-15T17:15:58Z","merge_commit_sha":"6a758df5cd318e84b0ec2ffdae728e36ce2da89a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/pulls/443/commits","review_comments_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/pulls/443/comments","review_comment_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/443/comments","statuses_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/statuses/e9c2f83fbcb510dfde57384f45a6b8ed1eba3147","head":{"label":"dsyme:fix-mem1","ref":"fix-mem1","sha":"e9c2f83fbcb510dfde57384f45a6b8ed1eba3147","user":{"login":"dsyme","id":7204669,"avatar_url":"https://avatars.githubusercontent.com/u/7204669?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyme","html_url":"https://github.com/dsyme","followers_url":"https://api.github.com/users/dsyme/followers","following_url":"https://api.github.com/users/dsyme/following{/other_user}","gists_url":"https://api.github.com/users/dsyme/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyme/subscriptions","organizations_url":"https://api.github.com/users/dsyme/orgs","repos_url":"https://api.github.com/users/dsyme/repos","events_url":"https://api.github.com/users/dsyme/events{/privacy}","received_events_url":"https://api.github.com/users/dsyme/received_events","type":"User","site_admin":false},"repo":{"id":25259111,"name":"FSharp.Compiler.Service","full_name":"dsyme/FSharp.Compiler.Service","owner":{"login":"dsyme","id":7204669,"avatar_url":"https://avatars.githubusercontent.com/u/7204669?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyme","html_url":"https://github.com/dsyme","followers_url":"https://api.github.com/users/dsyme/followers","following_url":"https://api.github.com/users/dsyme/following{/other_user}","gists_url":"https://api.github.com/users/dsyme/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyme/subscriptions","organizations_url":"https://api.github.com/users/dsyme/orgs","repos_url":"https://api.github.com/users/dsyme/repos","events_url":"https://api.github.com/users/dsyme/events{/privacy}","received_events_url":"https://api.github.com/users/dsyme/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dsyme/FSharp.Compiler.Service","description":"F# compiler component exposing additional functionality for editing clients","fork":true,"url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service","forks_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/forks","keys_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/teams","hooks_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/hooks","issue_events_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/issues/events{/number}","events_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/events","assignees_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/assignees{/user}","branches_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/branches{/branch}","tags_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/tags","blobs_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/git/refs{/sha}","trees_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/statuses/{sha}","languages_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/languages","stargazers_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/stargazers","contributors_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/contributors","subscribers_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/subscribers","subscription_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/subscription","commits_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/commits{/sha}","git_commits_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/git/commits{/sha}","comments_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/comments{/number}","issue_comment_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/issues/comments{/number}","contents_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/contents/{+path}","compare_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/merges","archive_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/downloads","issues_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/issues{/number}","pulls_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/pulls{/number}","milestones_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/milestones{/number}","notifications_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/labels{/name}","releases_url":"https://api.github.com/repos/dsyme/FSharp.Compiler.Service/releases{/id}","created_at":"2014-10-15T14:46:44Z","updated_at":"2015-04-09T21:52:13Z","pushed_at":"2015-10-15T17:15:52Z","git_url":"git://github.com/dsyme/FSharp.Compiler.Service.git","ssh_url":"git@github.com:dsyme/FSharp.Compiler.Service.git","clone_url":"https://github.com/dsyme/FSharp.Compiler.Service.git","svn_url":"https://github.com/dsyme/FSharp.Compiler.Service","homepage":"http://fsharp.github.io/FSharp.Compiler.Service","size":126486,"stargazers_count":0,"watchers_count":0,"language":"F#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fsharp:master","ref":"master","sha":"fba477a438b8f4fbfbf04c8dd0db0056dd175022","user":{"login":"fsharp","id":485415,"avatar_url":"https://avatars.githubusercontent.com/u/485415?v=3","gravatar_id":"","url":"https://api.github.com/users/fsharp","html_url":"https://github.com/fsharp","followers_url":"https://api.github.com/users/fsharp/followers","following_url":"https://api.github.com/users/fsharp/following{/other_user}","gists_url":"https://api.github.com/users/fsharp/gists{/gist_id}","starred_url":"https://api.github.com/users/fsharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsharp/subscriptions","organizations_url":"https://api.github.com/users/fsharp/orgs","repos_url":"https://api.github.com/users/fsharp/repos","events_url":"https://api.github.com/users/fsharp/events{/privacy}","received_events_url":"https://api.github.com/users/fsharp/received_events","type":"Organization","site_admin":false},"repo":{"id":13227260,"name":"FSharp.Compiler.Service","full_name":"fsharp/FSharp.Compiler.Service","owner":{"login":"fsharp","id":485415,"avatar_url":"https://avatars.githubusercontent.com/u/485415?v=3","gravatar_id":"","url":"https://api.github.com/users/fsharp","html_url":"https://github.com/fsharp","followers_url":"https://api.github.com/users/fsharp/followers","following_url":"https://api.github.com/users/fsharp/following{/other_user}","gists_url":"https://api.github.com/users/fsharp/gists{/gist_id}","starred_url":"https://api.github.com/users/fsharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsharp/subscriptions","organizations_url":"https://api.github.com/users/fsharp/orgs","repos_url":"https://api.github.com/users/fsharp/repos","events_url":"https://api.github.com/users/fsharp/events{/privacy}","received_events_url":"https://api.github.com/users/fsharp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fsharp/FSharp.Compiler.Service","description":"F# compiler component exposing additional functionality for editing clients","fork":false,"url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service","forks_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/forks","keys_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/teams","hooks_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/hooks","issue_events_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/events{/number}","events_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/events","assignees_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/assignees{/user}","branches_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/branches{/branch}","tags_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/tags","blobs_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/git/refs{/sha}","trees_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/statuses/{sha}","languages_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/languages","stargazers_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/stargazers","contributors_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/contributors","subscribers_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/subscribers","subscription_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/subscription","commits_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/commits{/sha}","git_commits_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/git/commits{/sha}","comments_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/comments{/number}","issue_comment_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/comments{/number}","contents_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/contents/{+path}","compare_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/merges","archive_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/downloads","issues_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues{/number}","pulls_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/pulls{/number}","milestones_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/milestones{/number}","notifications_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/labels{/name}","releases_url":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/releases{/id}","created_at":"2013-09-30T21:01:56Z","updated_at":"2015-10-13T18:27:52Z","pushed_at":"2015-10-15T17:15:58Z","git_url":"git://github.com/fsharp/FSharp.Compiler.Service.git","ssh_url":"git@github.com:fsharp/FSharp.Compiler.Service.git","clone_url":"https://github.com/fsharp/FSharp.Compiler.Service.git","svn_url":"https://github.com/fsharp/FSharp.Compiler.Service","homepage":"http://fsharp.github.io/FSharp.Compiler.Service","size":136925,"stargazers_count":102,"watchers_count":102,"language":"F#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":60,"mirror_url":null,"open_issues_count":83,"forks":60,"open_issues":83,"watchers":102,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/pulls/443"},"html":{"href":"https://github.com/fsharp/FSharp.Compiler.Service/pull/443"},"issue":{"href":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/443"},"comments":{"href":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/issues/443/comments"},"review_comments":{"href":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/pulls/443/comments"},"review_comment":{"href":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/pulls/443/commits"},"statuses":{"href":"https://api.github.com/repos/fsharp/FSharp.Compiler.Service/statuses/e9c2f83fbcb510dfde57384f45a6b8ed1eba3147"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"dsyme","id":7204669,"avatar_url":"https://avatars.githubusercontent.com/u/7204669?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyme","html_url":"https://github.com/dsyme","followers_url":"https://api.github.com/users/dsyme/followers","following_url":"https://api.github.com/users/dsyme/following{/other_user}","gists_url":"https://api.github.com/users/dsyme/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyme/subscriptions","organizations_url":"https://api.github.com/users/dsyme/orgs","repos_url":"https://api.github.com/users/dsyme/repos","events_url":"https://api.github.com/users/dsyme/events{/privacy}","received_events_url":"https://api.github.com/users/dsyme/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":4,"additions":154,"deletions":35,"changed_files":10}}