質問

I am working on a normal CRUD application using rails 3.0.9

I have deployed the application on the Slicehost (RAM 512 MB). But when i access the application within 5 mins it takes up all the memory & application crashes.

Can anybody will help me out here?

役に立ちましたか?

解決

Run top, then hit 'shift+m' to see which proc is eating up the RAM.

It may not be the rails app, but rather MySQL or Apache launching too many processes .. too many mogrels if deployed using mongrels.

Also check out this page for rails RAM usage shrinking: http://www.modrails.com/documentation/Users%20guide%20Apache.html#_resource_control_and_optimization_options

And this page for Apache / MySQL shrinking: http://chrisjohnston.org/2008/configuring-a-lightweight-apache-mysql-install-on-debian-ubuntu

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top