I have a rails app - ubuntu feisty - apache 2.2 - mod proxy - 4 mongrels in a cluster - 1g ram About once a day, the memory usage (as reported by top) of one of the mongrels will zip from the normal 4% to 75% and never come back. At that point, the system is basically hosed and that mongrel needs to be restarted. There''s alot of activity on this system, and I am having a hard time trying to pinpoint this problem. Any advise ???? --~--~---------~--~----~------------~-------~--~----~ 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 doubt its mongrel per se by the way, more likely something in my app, but still finding it is not easy. On May 24, 9:40 am, uncle <akt...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have a rails app > - ubuntu feisty > - apache 2.2 > - mod proxy > - 4 mongrels in a cluster > - 1g ram > > About once a day, the memory usage (as reported by top) of one of the > mongrels will zip from the normal 4% to 75% and never come back. At > that point, the system is basically hosed and that mongrel needs to be > restarted. > > There''s alot of activity on this system, and I am having a hard time > trying to pinpoint this problem. > > Any advise ????--~--~---------~--~----~------------~-------~--~----~ 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, You can try http://blog.evanweaver.com/pages/code#bleak_house which has the slight overhead of building a custom binary ( rake task ). - Lourens On 2007/05/24, at 15:43, uncle wrote:> > I doubt its mongrel per se by the way, more likely something in my > app, but still finding it is not easy. > > > > On May 24, 9:40 am, uncle <akt...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> I have a rails app >> - ubuntu feisty >> - apache 2.2 >> - mod proxy >> - 4 mongrels in a cluster >> - 1g ram >> >> About once a day, the memory usage (as reported by top) of one of the >> mongrels will zip from the normal 4% to 75% and never come back. At >> that point, the system is basically hosed and that mongrel needs >> to be >> restarted. >> >> There''s alot of activity on this system, and I am having a hard time >> trying to pinpoint this problem. >> >> Any advise ???? > > >--~--~---------~--~----~------------~-------~--~----~ 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 24 May 2007, at 16:40, uncle wrote:> I have a rails app > - ubuntu feisty > - apache 2.2 > - mod proxy > - 4 mongrels in a cluster > - 1g ram > > About once a day, the memory usage (as reported by top) of one of the > mongrels will zip from the normal 4% to 75% and never come back. At > that point, the system is basically hosed and that mongrel needs to be > restarted. > > There''s alot of activity on this system, and I am having a hard time > trying to pinpoint this problem. > > Any advise ????Could it be during an RMagick operation or file upload? This happened to me once a while back, but I think a gem update fixed my problem, because it was a one-time problem. 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 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 -~----------~----~----~----~------~----~------~--~---
Thanks for the ideas, but there is no rmagick involved in this app, and no uploading ! On May 24, 11:45 am, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> On 24 May 2007, at 16:40, uncle wrote: > > > > > I have a rails app > > - ubuntu feisty > > - apache 2.2 > > - mod proxy > > - 4 mongrels in a cluster > > - 1g ram > > > About once a day, the memory usage (as reported by top) of one of the > > mongrels will zip from the normal 4% to 75% and never come back. At > > that point, the system is basically hosed and that mongrel needs to be > > restarted. > > > There''s alot of activity on this system, and I am having a hard time > > trying to pinpoint this problem. > > > Any advise ???? > > Could it be during an RMagick operation or file upload? This happened > to me once a while back, but I think a gem update fixed my problem, > because it was a one-time problem. > > 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 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 -~----------~----~----~----~------~----~------~--~---
uncle wrote:> I have a rails app > - ubuntu feisty > - apache 2.2 > - mod proxy > - 4 mongrels in a cluster > - 1g ram > > About once a day, the memory usage (as reported by top) of one of the > mongrels will zip from the normal 4% to 75% and never come back. At > that point, the system is basically hosed and that mongrel needs to be > restarted. > > There''s alot of activity on this system, and I am having a hard time > trying to pinpoint this problem. > > Any advise ???? > > > > >Do you maybe use send_file to stream big files back to user? I have similiar problem with memory consumption and it was send_file... best, Bojan -- Bojan Mihelac -> Ruby on Rails and Web Developer Blog : http://source.mihelac.org --~--~---------~--~----~------------~-------~--~----~ 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, do you have an isolated development box that you can use to diagnose the issue that you''re seeing in production? Also, what applications are running when this issue occurs? Last but not least, what exactly does your application do and could you provide information about the version of rails and third-party gems/plugins that you''re using for this application? -Conrad On 5/26/07, Bojan Mihelac <lists-3SxN1WY3PMJAfugRpC6u6w@public.gmane.org> wrote:> > uncle wrote: > > I have a rails app > > - ubuntu feisty > > - apache 2.2 > > - mod proxy > > - 4 mongrels in a cluster > > - 1g ram > > > > About once a day, the memory usage (as reported by top) of one of the > > mongrels will zip from the normal 4% to 75% and never come back. At > > that point, the system is basically hosed and that mongrel needs to be > > restarted. > > > > There''s alot of activity on this system, and I am having a hard time > > trying to pinpoint this problem. > > > > Any advise ???? > > > > > > > > > > > Do you maybe use send_file to stream big files back to user? > I have similiar problem with memory consumption and it was send_file... > > best, > Bojan > > -- > Bojan Mihelac > -> Ruby on Rails and Web Developer Blog : http://source.mihelac.org > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---