During a running task this exception is raised by the Curb gem (https://github.com/taf2/curb).
failed to allocate memory
It's strange because before the Exception the gem works properly (with others curl calls).
Any ideas?
I'm using Ruby 1.9.3 on Ubuntu server (and same error in dev mode locally - Mac OS X)
EDIT
In my task I do very much (+10k) calls like this
req = Curl::Easy.new do |curl|
curl.ssl_verify_peer = false
curl.url = url
curl.headers['Content-type'] = 'application/json'
end
req.perform