We just move to a new infrastructure for our site 2 weeks ago. Over
2-3 days our memory usage climbs on our 2gb app servers (we have 3)
and starts using swap. After that the server will start returning 502
bad gateway error messages.
I've limited the max pool size to 5 since our app gets very large.
However before our app goes down all the way response time starts
growing also. When I check passenger-status I see that it has
correctly set our max pool size but when I check passenger-memory-
stats there may be as many as 8 rails instances not counting the
spawning processes.
I've also stopped Nginx, verified that passenger is not running, and
then ran passenger-memory-stats only to find that the rails instances
are still running.
Is there some known issue with passenger being unable to kill rails
processes?
Below is a link to some command outputs I ran this morning. The top
half on 'kinetoscope' server are on a server that was returning 502
errors. The bottom half 'lightbulb' shows the rails processes still
running after stopping Nginx.
http://gist.github.com/115513
Thanks for the help,
Jared