Created
October 31, 2011 19:10
-
-
Save elianderson/1328538 to your computer and use it in GitHub Desktop.
Ruby sever Load out of control
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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