I’m running ruby 1.9.3 with rails on a Rackspace server. Ruby has 12 processes and is taking up 99.3% of my servers CPU. Is there any configuration file or option to either limit the number of processes and CPU it takes up or just make it use less CPU in general? How should I start fixing this.
UPDATE: I’m using passenger with apache
I found the issue! There is a bug with New Relic and Resque workers (https://github.com/defunkt/resque/issues/578). I’m using the New Relic Beta gem which solves this. I replaced this:
gem 'newrelic_rpm'withgem 'newrelic_rpm', "~> 3.5.6.48.beta"