{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/429","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/429/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/429/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/429/events","html_url":"https://github.com/lovell/sharp/issues/429","id":155216395,"number":429,"title":"Understanding sharp mem usage with a disabled cache","user":{"login":"papandreou","id":373545,"avatar_url":"https://avatars.githubusercontent.com/u/373545?v=3","gravatar_id":"","url":"https://api.github.com/users/papandreou","html_url":"https://github.com/papandreou","followers_url":"https://api.github.com/users/papandreou/followers","following_url":"https://api.github.com/users/papandreou/following{/other_user}","gists_url":"https://api.github.com/users/papandreou/gists{/gist_id}","starred_url":"https://api.github.com/users/papandreou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papandreou/subscriptions","organizations_url":"https://api.github.com/users/papandreou/orgs","repos_url":"https://api.github.com/users/papandreou/repos","events_url":"https://api.github.com/users/papandreou/events{/privacy}","received_events_url":"https://api.github.com/users/papandreou/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lovell/sharp/labels/question","name":"question","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2016-05-17T09:37:38Z","updated_at":"2016-09-13T07:26:43Z","closed_at":"2016-06-14T07:36:32Z","body":"I'm seeing some weird memory usage patterns on a production system that does on-demand image processing after we switched to sharp recently. I found https://github.com/lovell/sharp/issues/349 and https://github.com/lovell/sharp/issues/260 which seemed very similar, and was happy that the matter seemed to be concluded to everyone's satisfaction.\r\n\r\nAs far as I can tell, there are still problems, though. I changed @janaz's test setup (thank you very much for putting that online) to use the latest sharp master commit, the latest libvips master commit, disable sharp's cache via `sharp.cache(false)`, and run more iterations of the test: https://github.com/papandreou/sharp-mem-usage/tree/fiddleAround\r\n\r\nA `make tests` run in my fork yielded this output: https://gist.github.com/papandreou/27fde30202fe778f44dbaff9d7a39f63\r\n\r\nThe RSS starts at 33 MB, raises to 42 MB after the first iteration, and adds about 10 MB per iteration for a bit, slows down, plateaus at 275 MB for about 30 iterations, then a full mark-sweep garbage collection of the JavaScript heap brings it down to 177 MB, the pattern repeats itself a few times, and then it starts a steady increase and approaches 500 MB near the end of the 500 iterations.\r\n\r\n... There *is* something going on :). I don't know exactly how to interpret the results, but I would expect the RSS to come down to about the initial level after a full mark-sweep GC.\r\n\r\nThe `outfit` branch shows the same trend."},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/246597939","html_url":"https://github.com/lovell/sharp/issues/429#issuecomment-246597939","issue_url":"https://api.github.com/repos/lovell/sharp/issues/429","id":246597939,"user":{"login":"jcupitt","id":580843,"avatar_url":"https://avatars.githubusercontent.com/u/580843?v=3","gravatar_id":"","url":"https://api.github.com/users/jcupitt","html_url":"https://github.com/jcupitt","followers_url":"https://api.github.com/users/jcupitt/followers","following_url":"https://api.github.com/users/jcupitt/following{/other_user}","gists_url":"https://api.github.com/users/jcupitt/gists{/gist_id}","starred_url":"https://api.github.com/users/jcupitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcupitt/subscriptions","organizations_url":"https://api.github.com/users/jcupitt/orgs","repos_url":"https://api.github.com/users/jcupitt/repos","events_url":"https://api.github.com/users/jcupitt/events{/privacy}","received_events_url":"https://api.github.com/users/jcupitt/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T07:26:43Z","updated_at":"2016-09-13T07:26:43Z","body":"8.4 ought to be within a week, the last thing has been merged and it's just final tweaks, updating all the docs and updating the various builds. "}}
{"actor":{"display_login":"jcupitt"}}