tra/spawn — Issue #26: Can't allocate memory
Author: avitus
Created: 2011-12-02 01:04:40+00:00
State: open

We seeing a lot of the following types of errors:

Errno::ENOMEM: Cannot allocate memory - fork(2)

[GEM_ROOT]/bundler/gems/spawn-beaf7937cae9/lib/spawn.rb:165:in `fork'
[GEM_ROOT]/bundler/gems/spawn-beaf7937cae9/lib/spawn.rb:165:in `fork_it'
[GEM_ROOT]/bundler/gems/spawn-beaf7937cae9/lib/spawn.rb:130:in `spawn_block'

They are occurring even though at the time 50% of our 4GB RAM is being utilized. Our environment is Ruby 1.9.2, Rails 3.1.1, Nginx 1.0.6 and Passenger 3.0.6.