Hi all, I've a Rails 3.0 application that have a problem with the memory consumption.
The application works in production mode on Apache + passenger mod on a Debian machine. It's a virtual machine with 6 Gb RAM and 2 CPU (1 core 3GHz). It's a mailing application and a simple click on a link to read a mail requires a series of operations on the server to render the page. This simple click needs about 50% of CPU during 2 or 3 seconds (I see it with "top" command). It seems that ruby processes allocate memory for jobs. But when the job is finished, the allocated memory seems to not be freed (unlike the CPU usage). The problem is that I've about 150 users on the system and the Postgresql database is installed on the same machine. When several users make operations at same time, memory usage increases until 100% and Postgres can't accept request any more (then Postgres stops to log). Is there any configuration that I can make (Apache? Passenger? Rails?) to prevent memory usage increasing (Why it isn't decreasing with the CPU?) and Postgresql crash? Thank you in advance. Rémi -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

