{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/4673","repository_url":"https://api.github.com/repos/bundler/bundler","labels_url":"https://api.github.com/repos/bundler/bundler/issues/4673/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/4673/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/4673/events","html_url":"https://github.com/bundler/bundler/issues/4673","id":160288443,"number":4673,"title":"Rescue `Java::JavaLang::OutOfMemoryError` and print a useful error message","user":{"login":"indirect","id":78,"avatar_url":"https://avatars.githubusercontent.com/u/78?v=3","gravatar_id":"","url":"https://api.github.com/users/indirect","html_url":"https://github.com/indirect","followers_url":"https://api.github.com/users/indirect/followers","following_url":"https://api.github.com/users/indirect/following{/other_user}","gists_url":"https://api.github.com/users/indirect/gists{/gist_id}","starred_url":"https://api.github.com/users/indirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indirect/subscriptions","organizations_url":"https://api.github.com/users/indirect/orgs","repos_url":"https://api.github.com/users/indirect/repos","events_url":"https://api.github.com/users/indirect/events{/privacy}","received_events_url":"https://api.github.com/users/indirect/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-14T21:28:59Z","updated_at":"2016-06-14T21:57:35Z","closed_at":null,"body":"As reported in #4572, it's very possible for Bundler to run the JVM out of memory, especially on memory-constrained JVM instances. We should rescue this error and print an explanatory message, rather than barfing a stacktrace and asking users to report the bug as a new issue. Here's a draft error message:\r\n\r\n> Your JVM has run out of memory, and Bundler cannot continue. You can decrease the amount of memory Bundler needs by removing gems from your Gemfile, especially large gems. (Gems can be as large as hundreds of megabytes, and Bundler has to read those files!). Alternatively, you can increase the amount of memory the JVM is able to use by running Bundler with `jruby -J-Xmx1024m -S bundle` (JRuby defaults to 500MB)."},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/226028680","html_url":"https://github.com/bundler/bundler/issues/4673#issuecomment-226028680","issue_url":"https://api.github.com/repos/bundler/bundler/issues/4673","id":226028680,"user":{"login":"segiddins","id":1946610,"avatar_url":"https://avatars.githubusercontent.com/u/1946610?v=3","gravatar_id":"","url":"https://api.github.com/users/segiddins","html_url":"https://github.com/segiddins","followers_url":"https://api.github.com/users/segiddins/followers","following_url":"https://api.github.com/users/segiddins/following{/other_user}","gists_url":"https://api.github.com/users/segiddins/gists{/gist_id}","starred_url":"https://api.github.com/users/segiddins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segiddins/subscriptions","organizations_url":"https://api.github.com/users/segiddins/orgs","repos_url":"https://api.github.com/users/segiddins/repos","events_url":"https://api.github.com/users/segiddins/events{/privacy}","received_events_url":"https://api.github.com/users/segiddins/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T21:57:35Z","updated_at":"2016-06-14T21:57:35Z","body":"Can just add this to friendly_errors"}}
{"actor":{"display_login":"segiddins"}}