After a couple of hours running rails with development environment the process ruby.exe uses up to 700MB of RAM, and every refresh of localhost:3000 takes about a second on loading every file. Is it normal? Is there any way to reduce memory usage without regular restarts of the server? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, the memory management under Windows is terrible. Also, the Ruby performance will be very slow in this environment because of it. I would recommend using a Unix environment similar to Ubuntu. When you''re starting your server in development mode, it will reload all your models and controllers for every request. This is what this mode was implemented to do and you can find a reference in AWDwR2e. In any case, you can start up the server in production mode but you loose some of the log artifacts that the development mode gives you: script/server -e production Good luck, -Conrad On 7/10/07, Nikolay Kurtov <nkurtov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > After a couple of hours running rails with development environment the > process ruby.exe uses up to 700MB of RAM, and every refresh of > localhost:3000 takes about a second on loading every file. > Is it normal? > Is there any way to reduce memory usage without regular restarts of > the server? > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Even it is unknown what yours RoR app do it is unlikely that it takes such large amount of RAM. Especially that it is increasing with the working hours. You should find the bottleneck of you app and what is taking to long to process yours requests. Monitor the memory consumption over time and analyze the logs. Try to find the cause of problem using the elimination methodology. There is something fishy in you app even the Win memory manager is not perfect. We do not live in a perfect world but we can make it better ;-) On Jul 11, 9:08 am, "Conrad Taylor" <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, the memory management under Windows is terrible. Also, the Ruby > performance will be very slow in this environment because of it. I would > recommend using a Unix environment similar to Ubuntu. When you''re starting > your server in development mode, it will reload all your models and > controllers for every request. This is what this mode was implemented to do > and you can find a reference in AWDwR2e. In any case, you can start up the > server in production mode but you loose some of the log artifacts that the > development mode gives you: > script/server -e production > > Good luck, > > -Conrad > > On 7/10/07, Nikolay Kurtov <nkur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > After a couple of hours running rails with development environment the > > process ruby.exe uses up to 700MB of RAM, and every refresh of > > localhost:3000 takes about a second on loading every file. > > Is it normal? > > Is there any way to reduce memory usage without regular restarts of > > the server?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---