I am using enterprise ruby. Thought perhaps that was the problem.
Trausti On Mon, Nov 30, 2009 at 7:13 AM, Niels Meersschaert <[email protected]> wrote: > Try using Enterprise Ruby (from the same people as Passenger). It can reduce > your memory footprint quite a bit. However, in the case you are describing, > it could just be that your app needs to be tuned. If you are doing > processing on the images, you might want to put those to a background thread > like delayed_job, although that process could also suck all the ram, so you > might need to use monit on it to periodically restart it. > > However, tuning aside, if you are finding your volume is requiring more RAM, > you might need to bump your hardware to support it. > > > On Nov 29, 2009, at 5:47 PM, Trausti Thor Johannsson wrote: > >> Hi All, >> >> I have a small ruby on rails site, using passenger and apache. The >> site is moderately successful. It allows people to upload photos. It >> seems like when people upload photos, the memory is never returned, or >> very late, so on a busy day I can start to use 1 GB of swap in 30 >> minutes. >> >> I use the attachment_fu to handle the uploads. >> >> Any ideas on how to use less memory and give the memory back quicker ? >> >> >> >> Trausti >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

