{"action":"created","issue":{"url":"https://api.github.com/repos/opengovfoundation/madison/issues/413","labels_url":"https://api.github.com/repos/opengovfoundation/madison/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/opengovfoundation/madison/issues/413/comments","events_url":"https://api.github.com/repos/opengovfoundation/madison/issues/413/events","html_url":"https://github.com/opengovfoundation/madison/issues/413","id":39228719,"number":413,"title":"Composer update runs out of memory","user":{"login":"rtsio","id":3372355,"avatar_url":"https://avatars.githubusercontent.com/u/3372355?v=3","gravatar_id":"","url":"https://api.github.com/users/rtsio","html_url":"https://github.com/rtsio","followers_url":"https://api.github.com/users/rtsio/followers","following_url":"https://api.github.com/users/rtsio/following{/other_user}","gists_url":"https://api.github.com/users/rtsio/gists{/gist_id}","starred_url":"https://api.github.com/users/rtsio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtsio/subscriptions","organizations_url":"https://api.github.com/users/rtsio/orgs","repos_url":"https://api.github.com/users/rtsio/repos","events_url":"https://api.github.com/users/rtsio/events{/privacy}","received_events_url":"https://api.github.com/users/rtsio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/opengovfoundation/madison/milestones/11","html_url":"https://github.com/opengovfoundation/madison/milestones/Bugs","labels_url":"https://api.github.com/repos/opengovfoundation/madison/milestones/11/labels","id":700390,"number":11,"title":"Bugs","description":"","creator":{"login":"cmbirk","id":764851,"avatar_url":"https://avatars.githubusercontent.com/u/764851?v=3","gravatar_id":"","url":"https://api.github.com/users/cmbirk","html_url":"https://github.com/cmbirk","followers_url":"https://api.github.com/users/cmbirk/followers","following_url":"https://api.github.com/users/cmbirk/following{/other_user}","gists_url":"https://api.github.com/users/cmbirk/gists{/gist_id}","starred_url":"https://api.github.com/users/cmbirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmbirk/subscriptions","organizations_url":"https://api.github.com/users/cmbirk/orgs","repos_url":"https://api.github.com/users/cmbirk/repos","events_url":"https://api.github.com/users/cmbirk/events{/privacy}","received_events_url":"https://api.github.com/users/cmbirk/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":23,"state":"open","created_at":"2014-06-24T18:25:57Z","updated_at":"2014-11-27T04:31:28Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2014-07-31T19:27:36Z","updated_at":"2015-03-04T20:53:31Z","closed_at":null,"body":"On running `composer update`, PHP will use over 1GB in memory and eventually stop. This depends on the environment, but I can't find what triggers it:\r\n\r\n```PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 134217728 bytes) in phar:///usr/local/Cellar/composer/1.0.0-alpha8/libexec/composer.phar/src/Composer/DependencyResolver/Solver.php on line 170```\r\n\r\n\r\nThis is a known issue with composer and may not be specific to Madison. The quick solution seems to be increasing the PHP memory limit so that composer can finish the update, though this may not be an option on low memory systems. See:\r\n\r\nhttps://github.com/composer/composer/issues/1898\r\nhttps://github.com/composer/composer/issues/2704\r\nhttp://stackoverflow.com/questions/21815635/composer-running-out-of-memory-on-every-project-mac-os-x\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/opengovfoundation/madison/issues/comments/77244848","html_url":"https://github.com/opengovfoundation/madison/issues/413#issuecomment-77244848","issue_url":"https://api.github.com/repos/opengovfoundation/madison/issues/413","id":77244848,"user":{"login":"krues8dr","id":127904,"avatar_url":"https://avatars.githubusercontent.com/u/127904?v=3","gravatar_id":"","url":"https://api.github.com/users/krues8dr","html_url":"https://github.com/krues8dr","followers_url":"https://api.github.com/users/krues8dr/followers","following_url":"https://api.github.com/users/krues8dr/following{/other_user}","gists_url":"https://api.github.com/users/krues8dr/gists{/gist_id}","starred_url":"https://api.github.com/users/krues8dr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krues8dr/subscriptions","organizations_url":"https://api.github.com/users/krues8dr/orgs","repos_url":"https://api.github.com/users/krues8dr/repos","events_url":"https://api.github.com/users/krues8dr/events{/privacy}","received_events_url":"https://api.github.com/users/krues8dr/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T20:53:31Z","updated_at":"2015-03-04T20:53:31Z","body":"The general advice for `composer` is to not run `composer update` if you're running out of memory - instead remove the installed libraries and run `composer install`.\r\n\r\nI think this issue should be closed, as it's an upstream problem, and a note added to the README."}}