{"action":"created","issue":{"url":"https://api.github.com/repos/graphhopper/jsprit/issues/282","repository_url":"https://api.github.com/repos/graphhopper/jsprit","labels_url":"https://api.github.com/repos/graphhopper/jsprit/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/graphhopper/jsprit/issues/282/comments","events_url":"https://api.github.com/repos/graphhopper/jsprit/issues/282/events","html_url":"https://github.com/graphhopper/jsprit/pull/282","id":179720122,"number":282,"title":"fix memory leak","user":{"login":"muzuro","id":8950484,"avatar_url":"https://avatars.githubusercontent.com/u/8950484?v=3","gravatar_id":"","url":"https://api.github.com/users/muzuro","html_url":"https://github.com/muzuro","followers_url":"https://api.github.com/users/muzuro/followers","following_url":"https://api.github.com/users/muzuro/following{/other_user}","gists_url":"https://api.github.com/users/muzuro/gists{/gist_id}","starred_url":"https://api.github.com/users/muzuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muzuro/subscriptions","organizations_url":"https://api.github.com/users/muzuro/orgs","repos_url":"https://api.github.com/users/muzuro/repos","events_url":"https://api.github.com/users/muzuro/events{/privacy}","received_events_url":"https://api.github.com/users/muzuro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-28T09:15:02Z","updated_at":"2016-09-29T10:50:36Z","closed_at":"2016-09-29T10:42:10Z","pull_request":{"url":"https://api.github.com/repos/graphhopper/jsprit/pulls/282","html_url":"https://github.com/graphhopper/jsprit/pull/282","diff_url":"https://github.com/graphhopper/jsprit/pull/282.diff","patch_url":"https://github.com/graphhopper/jsprit/pull/282.patch"},"body":"I noticed a memory leak in my production environment. It can be reproduced with custom TransportCosts and huge array in it(after some amount of invocation same vrp, without stopping jsprit jvm and transportCost should be created each invocation, you wil recieve OOM). If we don`t remove shutdown hook it will be stored in runtime."},"comment":{"url":"https://api.github.com/repos/graphhopper/jsprit/issues/comments/250433235","html_url":"https://github.com/graphhopper/jsprit/pull/282#issuecomment-250433235","issue_url":"https://api.github.com/repos/graphhopper/jsprit/issues/282","id":250433235,"user":{"login":"karussell","id":129644,"avatar_url":"https://avatars.githubusercontent.com/u/129644?v=3","gravatar_id":"","url":"https://api.github.com/users/karussell","html_url":"https://github.com/karussell","followers_url":"https://api.github.com/users/karussell/followers","following_url":"https://api.github.com/users/karussell/following{/other_user}","gists_url":"https://api.github.com/users/karussell/gists{/gist_id}","starred_url":"https://api.github.com/users/karussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karussell/subscriptions","organizations_url":"https://api.github.com/users/karussell/orgs","repos_url":"https://api.github.com/users/karussell/repos","events_url":"https://api.github.com/users/karussell/events{/privacy}","received_events_url":"https://api.github.com/users/karussell/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T10:50:36Z","updated_at":"2016-09-29T10:50:36Z","body":"Additionally I would move the addition to the shutdown into the if. IMO something 'external' should not be manipulated."}}
{"actor":{"display_login":"karussell"}}