Does that mean I need to change any more code than is in my model ?

I did set GC.start inside Photo.save in the controller.  The situation
does not go out of hand any more, but the app is using quite a lot of
memory none the less.


Trausti

On Tue, Dec 1, 2009 at 2:21 PM, Peter De Berdt
<[email protected]> wrote:
>
> On 01 Dec 2009, at 13:45, Trausti Thor Johannsson wrote:
>
> It consumes less memory if I don't create thumbnails.
>
> OK, let's go one step further then and boil it down to RMagick (and not
> ImageMagick): install the mini_magick gem and change the thumbnail processor
> to minimagick explicitly and look at memory consumption. Since Minimagick
> uses the command line to process images, you should see no significant
> memory usage increase in your Rails instance. Also keep an eye on the total
> memory usage on your server and whether the imagemagick process stays around
> after the file has been processed (mogrify), it shouldn't.
>
> Best regards
>
> Peter De Berdt
>
> --
>
> 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.


Reply via email to