Skip to content

Instantly share code, notes, and snippets.

@elianderson
Created October 31, 2011 19:10
Show Gist options
  • Select an option

  • Save elianderson/1328538 to your computer and use it in GitHub Desktop.

Select an option

Save elianderson/1328538 to your computer and use it in GitHub Desktop.
Ruby sever Load out of control
is your load out of control? try this.
The file will be /etc/apache2/mods-enabled/passenger.conf
There is a line I added in there about max instances
If you make it the number of cores you have in your host instance (4 in this case)
Stop Apache
Then make sure no Ruby procs are left over
Then start Apache
The problem should go away
I don't expect it to happen again
Just make sure that line is in passenger.conf tho
to clear the processes do
for all in `ps aux |grep Rack|awk '{print $2}'`; do kill $all; done
resume work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment