{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5735","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5735/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5735/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5735/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/5735","id":180840814,"number":5735,"title":"Compilation/Completion server memory leak","user":{"login":"kevinresol","id":1103788,"avatar_url":"https://avatars.githubusercontent.com/u/1103788?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinresol","html_url":"https://github.com/kevinresol","followers_url":"https://api.github.com/users/kevinresol/followers","following_url":"https://api.github.com/users/kevinresol/following{/other_user}","gists_url":"https://api.github.com/users/kevinresol/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinresol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinresol/subscriptions","organizations_url":"https://api.github.com/users/kevinresol/orgs","repos_url":"https://api.github.com/users/kevinresol/repos","events_url":"https://api.github.com/users/kevinresol/events{/privacy}","received_events_url":"https://api.github.com/users/kevinresol/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/feature-compiler-cache","name":"feature-compiler-cache","color":"fad8c7"},{"url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/regression","name":"regression","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"assignees":[{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/milestones/11","html_url":"https://github.com/HaxeFoundation/haxe/milestones/3.3.0","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/milestones/11/labels","id":1599225,"number":11,"title":"3.3.0","description":"","creator":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":76,"state":"open","created_at":"2016-02-23T09:11:44Z","updated_at":"2016-10-10T13:50:41Z","due_on":"2016-06-18T22:00:00Z","closed_at":null},"comments":3,"created_at":"2016-10-04T09:07:55Z","updated_at":"2016-10-12T08:00:36Z","closed_at":null,"body":"Using vshaxe I found that the haxe process uses excessive memory (which can reach >80% of total machine RAM) and causes the whole machine unresponsive. This does not seem to happen with 3.3.0-rc.1 but only on latest git version.\r\n\r\nI am working on a rather big and macro-heavy project and the compilation time ranges from 15-30s.\r\n\r\nIn the following screenshot, the `haxe` process using ~5GB ram is the one started by vshaxe. The other `haxe` process is one started manually with `haxe --wait`, which I think would suffer from the same problem eventually but not now just because it is not \"used\" as frequently as the completion server.\r\n\r\n![screen shot 2016-10-04 at 4 30 50 pm](https://cloud.githubusercontent.com/assets/1103788/19068279/995cd05e-8a54-11e6-973c-858816deb5fd.png)\r\n"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/253145276","html_url":"https://github.com/HaxeFoundation/haxe/issues/5735#issuecomment-253145276","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5735","id":253145276,"user":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T08:00:36Z","updated_at":"2016-10-12T08:00:36Z","body":"I have zero ideas what could cause a memory leak. The only new cache I added is the directories."}}
{"actor":{"display_login":"Simn"}}