Bundle install running out of memory #356
Comments
You need to lock your bundle if you're using Bundler 0.9, with the |
I did that already. When comparing the difference between the 32 and 64 bit setups I noticed that the 32 bit system showed git being run in separate processes while the 64 bit system seemed to run git inside of the ruby process and thus bloating the memory. I have since abandoned the 64 bit systems for the time being. |
FWIW I've seen this as well. Fighting through a bunch of issues tonight--hard to know exactly what's going on given that i'm trying to bundle to edge rails and a couple other gems on a 384mb slicehost instance, and of course bundle install seems to work when I run it manually, fail from capistrano. Still, wanted to mention other's have seen it just in case it helps. |
I'm seeing this with bundler 1.0.0.beta9 deploying via capistrano. |
It also happens to me with bundler 1.0.0.beta9. I can't setup my application on a 512 Mb linode instance. I tried also to package (bundle package) all gems but bundler eats all memory when fetching source index from gemcutter.org. BTW, I don't know why fetch index if all the gems are versioned and on vendor/cache. |
Same thing here. Running on Rackspace 64-bit 246Mb Ubuntu 10 instance bundler RC1 eats 348 Mb of memory and never completes. I have Gemfile.lock and gems cached in vendor/cache |
Agreed - during Capistrano deploy, bundler rc.1 takes ~250 Mb and ultimately fails with Errno::ENOMEM on bundle install. |
After being really irritated with that issue I just did |
bundle install vendor/bundle --local finally licked the memory issue for us. |
This is (hopefully) resolved as of 43fe70e and 1.0rc3, which drastically reduces the memory used by |
I'm having this problem with Bundler 1.0.0. I'm unable to issue a bundle install --deployment on my 512MB slice, the bundle process gets up to > 150MB of memory usage. |
Using Bundler 1.0.1 on a 384MB slicehost slice, I needed to shutdown all other daemons just to run bundle install --deployment. Clearly whatever improvements have been made in memory handling still are not enough to fully resolve this :( |
Bundler 1.0.15, REE 1.8.7-2011.03 on a Linode VPS with 256 MiB of RAM, I got an Errno::ENOMEM as well. I had to bundle cache and bundle install --path vendor/local --local before I could run with no memory errors. |
@francois, unfortunately the master index contains the gemspec for every single gem that exists. That means loading it into RAM is pretty costly. Try out the Bundler 1.1 prerelease with |
I know this is closed, but I wanted to second @indirect's solution. |
I had this issue with |
Using Bundler while deploying to a 64 bit ubuntu 10.04 vps with 256MB ram I get this output/error.
$ bundle install --without test development
If I monitor the memory usage while running the command it's clear that bundler is eating up more and more memory as it goes along (seems to syncronize with every "Updating git://..." output) starting out at 24MB and crashing at around 150MB (even though there is still 100MB to go on the system).
This seems like rather a lot of memory usage for a tool like bundler to use.
Let me know if you'd like more information about the VPS I'm running on etc. I noticed "privmpages" failures in the admin interface for the VPS but I'm not knowledgeable enough to tell wether that can mean there is a problem with the VPS setup rather than bundler itself.
The text was updated successfully, but these errors were encountered: