I just updated a ruby on rails application from rails 1.1.0 to 1.2.x and got into the following problem: The lighttpd memory footprint rised from 23Mb(already not loading actionmailer and actionwebservice) to 27Mb and since the platform on which the rails app must run is very very limited on memory, that is not acceptable. What would you suggest to do? Is that app bound to stay on rails 1.1.0 to keep the memory footprint under 25Mb? Thank you in advance, Emanuele Ricci. -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I think you need to do what you can to remove whatever real or artificial memory limit you have. Typically, a Rails app will grow far beyond 25mb when under heavy use, regardless of what version you''re using. You can verify that yourself by hitting your application''s URL with httperf Rails 1.2 does consume a bit more memory than previous versions though. On 10/24/07, Emanuele Ricci <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > I just updated a ruby on rails application from rails 1.1.0 to 1.2.x and > got into the following problem: > The lighttpd memory footprint rised from 23Mb(already not loading > actionmailer and actionwebservice) to 27Mb and since the platform on > which the rails app must run is very very limited on memory, that is not > acceptable. > What would you suggest to do? Is that app bound to stay on rails 1.1.0 > to keep the memory footprint under 25Mb? > > Thank you in advance, > Emanuele Ricci. > -- > 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Brian Hogan wrote:> I think you need to do what you can to remove whatever real or > artificial > memory limit you have. Typically, a Rails app will grow far beyond 25mb > when under heavy use, regardless of what version you''re using. You can > verify that yourself by hitting your application''s URL with httperf > Rails > 1.2 does consume a bit more memory than previous versions though.Thank you for your answer. Unfortunately the memory limit is there to stay since the app is running on an enbedded linux platform with only 64Mb of ram. Beside the memory is not going to rise much from the footprint cause only one user at a time is allowed and the webserver restarts automatically once a day. Is there something else I could strip from loading as I did with actionwebservice and actionmailer that were not needed to lower the footprint? -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Oct 24, 5:26 am, Emanuele Ricci <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Brian Hogan wrote: > > I think you need to do what you can to remove whatever real or > > artificial > > memory limit you have. Typically, a Rails app will grow far beyond 25mb > > when under heavy use, regardless of what version you''re using. You can > > verify that yourself by hitting your application''s URL with httperf > > Rails > > 1.2 does consume a bit more memory than previous versions though. > > Thank you for your answer. > Unfortunately the memory limit is there to stay since the app is running > on an enbedded linux platform with only 64Mb of ram. Beside the memory > is not going to rise much from the footprint cause only one user at a > time is allowed and the webserver restarts automatically once a day. > > Is there something else I could strip from loading as I did with > actionwebservice and actionmailer that were not needed to lower the > footprint? > -- > Posted viahttp://www.ruby-forum.com/.i think they were asking similar questions: http://groups.google.com/group/rubyonrails-talk/browse_frm/thread/5347b34338c2fda2/# --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
With memory restrictions like that you may want to consider Merb or Camping, lighter Ruby frameworks. Rails has a LOT of stuff that loads... the view layer is especially heavy. On 10/24/07, gene tani <gene.tani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > > > On Oct 24, 5:26 am, Emanuele Ricci <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > Brian Hogan wrote: > > > I think you need to do what you can to remove whatever real or > > > artificial > > > memory limit you have. Typically, a Rails app will grow far beyond > 25mb > > > when under heavy use, regardless of what version you''re using. You can > > > verify that yourself by hitting your application''s URL with httperf > > > Rails > > > 1.2 does consume a bit more memory than previous versions though. > > > > Thank you for your answer. > > Unfortunately the memory limit is there to stay since the app is running > > on an enbedded linux platform with only 64Mb of ram. Beside the memory > > is not going to rise much from the footprint cause only one user at a > > time is allowed and the webserver restarts automatically once a day. > > > > Is there something else I could strip from loading as I did with > > actionwebservice and actionmailer that were not needed to lower the > > footprint? > > -- > > Posted viahttp://www.ruby-forum.com/. > > i think they were asking similar questions: > > > http://groups.google.com/group/rubyonrails-talk/browse_frm/thread/5347b34338c2fda2/# > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thats not an option, but thank you anyway. -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I figured out how to lower the memory footprint back to something similiar to rails 1.1.0 by removing the not needed unicode support introduced by 1.2.0 as explained on the following page: http://slateinfo.blogs.wvu.edu/blog/2007/6/14/fix-your-encoding Anyway If someone can suggest anything else to strip from rails to reduce the memory footprint it would be very welcome :) . Thank you guys. -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You may want to look at http://railsexpress.de/blog/ as there is quite a bit of information there on optimizing Rails. On 10/24/07, Emanuele Ricci <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > I figured out how to lower the memory footprint back to something > similiar to rails > 1.1.0 by removing the not needed unicode support introduced by 1.2.0 as > explained on the following page: > > http://slateinfo.blogs.wvu.edu/blog/2007/6/14/fix-your-encoding > > Anyway If someone can suggest anything else to strip from rails to > reduce the memory footprint it would be very welcome :) . > > Thank you guys. > -- > 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---