Hello, I''ve been doing some tests for uploading large files (say > 50MB) from a form using ruby on rails, has anyone experienced poor performance during this operation ? I''ve tried every method described in wikis, tutorials, and even a few plugins to do this. In all cases the CPU of my (old) powerbook G4 goes to 100%, and it takes about a minute to upload a 50MB file to localhost, and more than 5 minutes for a 100MB file. I''ve tried the same operation in php and it takes about 15 seconds without occupying all the resources. At first i thought it was a matter of what code i was using to save the file, but in later tests i discovered that the process slows down just during the upload process, even if my controller code is no more than calling the array params[:uploaded_file], without saving the file anywhere. I don''t know what to think, maybe it is some flaw with WEBrick... I am currently using php to save the file in my application, but I would like to know if there is a "rails way" that you know. thanks in advance, Pier Luigi Rocca p.s. I''m a newbie, please don''t be rude --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
no one with the same problem ? On 15 Ago, 15:25, Pier Luigi Rocca <rocc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, > > I''ve been doing some tests for uploading large files (say > 50MB) from > a form using ruby on rails, has anyone experienced poor performance > during this operation ?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Pier Luigi Rocca wrote:> no one with the same problem ? >Last time I did huge uploads (around 500MB), the upload pretty much filled the 100Mbit/s available bandwidth on the LAN. I didn''t check the CPU usage though. The only problem was memory usage. If I had to put such a thing in production, I won''t use Rails for the upload, there are Mongrel plugins and web server extensions designed to do file upload without monopolizing a Rails process (and bringing its resident memory size through the roof), Google them, IIRC you can find Howtos to integrate them with Rails. Lionel --~--~---------~--~----~------------~-------~--~----~ 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 17 Ago, 20:48, Lionel Bouton <lionel-subscript...-WTamNBQcZIx7tPAFqOLdPg@public.gmane.org> wrote:> there are > Mongrel plugins and web server extensions designed to do file upload > without monopolizing a Rails process (and bringing its resident memory > size through the roof),I will do some tests and get back with the results, thank you pier luigi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
try Merb <http://merb.rubyforge.org> to upload files. 2007/8/18, Pier Luigi Rocca <roccapl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > > On 17 Ago, 20:48, Lionel Bouton <lionel-subscript...-WTamNBQcZIx7tPAFqOLdPg@public.gmane.org> > wrote: > > there are > > Mongrel plugins and web server extensions designed to do file upload > > without monopolizing a Rails process (and bringing its resident memory > > size through the roof), > > I will do some tests and get back with the results, thank you > > pier luigi > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---