{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/haskell-ide-engine/issues/806","repository_url":"https://api.github.com/repos/haskell/haskell-ide-engine","labels_url":"https://api.github.com/repos/haskell/haskell-ide-engine/issues/806/labels{/name}","comments_url":"https://api.github.com/repos/haskell/haskell-ide-engine/issues/806/comments","events_url":"https://api.github.com/repos/haskell/haskell-ide-engine/issues/806/events","html_url":"https://github.com/haskell/haskell-ide-engine/issues/806","id":357775486,"node_id":"MDU6SXNzdWUzNTc3NzU0ODY=","number":806,"title":"Have a watchdog restarting hie on high memory usage","user":{"login":"lorenzo","id":37621,"node_id":"MDQ6VXNlcjM3NjIx","avatar_url":"https://avatars3.githubusercontent.com/u/37621?v=4","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-06T18:35:05Z","updated_at":"2018-11-04T01:34:11Z","closed_at":null,"author_association":"COLLABORATOR","body":"A common complaint about hie is its unbounded memory consumption. This can be due to many different factors, but probably mostly to the famously known memory leak in GHCi, which has mostly been solved in the upcoming GHC 8.6.\r\n\r\nFor many the road to using 8.6 is far away in the future, so we should mitigate the issue with some other measures. One strategy can be having a separate thread in hie checking on the memory usage and making the server restart when it exceed a certain threshold.\r\n\r\nBefore restart, hie can send a `window/ShowMessage` explaining what it is doing."},"comment":{"url":"https://api.github.com/repos/haskell/haskell-ide-engine/issues/comments/435634482","html_url":"https://github.com/haskell/haskell-ide-engine/issues/806#issuecomment-435634482","issue_url":"https://api.github.com/repos/haskell/haskell-ide-engine/issues/806","id":435634482,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTYzNDQ4Mg==","user":{"login":"unode","id":122319,"node_id":"MDQ6VXNlcjEyMjMxOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/122319?v=4","gravatar_id":"","url":"https://api.github.com/users/unode","html_url":"https://github.com/unode","followers_url":"https://api.github.com/users/unode/followers","following_url":"https://api.github.com/users/unode/following{/other_user}","gists_url":"https://api.github.com/users/unode/gists{/gist_id}","starred_url":"https://api.github.com/users/unode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unode/subscriptions","organizations_url":"https://api.github.com/users/unode/orgs","repos_url":"https://api.github.com/users/unode/repos","events_url":"https://api.github.com/users/unode/events{/privacy}","received_events_url":"https://api.github.com/users/unode/received_events","type":"User","site_admin":false},"created_at":"2018-11-04T01:34:11Z","updated_at":"2018-11-04T01:34:11Z","author_association":"NONE","body":"If using `hie-wrapper` through vscode I get reliable restarts of `hie-x.y`.\r\nIf `hie-wrapper` gets killed it's a different story.\r\n\r\nTools like [earlyoom](https://github.com/rfjakob/earlyoom) are a big cannon but may help alleviating the symptom.\r\nYou can customize it to prefer killing `hie-x.y` over something else."}}
{"actor":{"display_login":"unode"}}