Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jobs failing with Errno::ENOMEM Cannot allocate memory - fork(2) #760

Closed
rafmagana opened this issue Nov 28, 2012 · 5 comments
Closed

Jobs failing with Errno::ENOMEM Cannot allocate memory - fork(2) #760

rafmagana opened this issue Nov 28, 2012 · 5 comments
Labels

Comments

@rafmagana
Copy link

I'm running some workers in an Ubuntu box, I'm using monit (but happens the same just by running workers from the command line), ruby 1.9.2, I'm using these workers to clone git repositories, I use RedisToGo (Heroku add-on). What other information would be useful for you guys to be able to help me?

@danivovich
Copy link

Is there anything in the Heroku logs like "Error R14 (Memory quota exceeded)"?

@rafmagana
Copy link
Author

I don't use a Heroku app, I have a separate application in a linux box, but I use the RedisToGo DB provided by a Heroku app, I do that because I need Git installed and Heroku doesn't provide that. So I don't see this error in the Heroku log, but in the log of the app running in the linux box. Thanks.

@danivovich
Copy link

Sorry I missed that. I assume you can clone the repositories from the command line in the box the workers run as? Are the workers running as be same user with the same limits? I've had issues cloning large git repositories from java processes on memory constrained systems. What ruby version are you using?

@rafmagana
Copy link
Author

  • Well, I clone the repos in Ruby but doing something like this: [backtick]git clone url[/backtick].
  • Yes, the workers runs with the same user and same limits.
  • Ruby version is 1.9.2

The weird thing is that I have 2 servers, exactly the same hardware and Ubuntu version, same configuration, same ruby version, same code, same everything on both of them, one is staging, the other one us production, of course, different RedisToGo (via Heroku, it's the Mini one) DB, and in the staging server doesn't happen this :S

@steveklabnik
Copy link
Member

This error comes from not having enough RAM, so I don't think it's actually a Resque issue. If you can help me reproduce it somehow, I can help investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants