Hi. I''ve installed Instant Rails, and when testing my rails apps, I''m noticing the load time is quite noticable. I''m concerned when I convert to real produciton, going live, if there''s going to be the same delay, plus additional bandwith traveling time. I am running on a pentium 4.. Insights on speed.. Thanks Dominic Son -- Posted via http://www.ruby-forum.com/.
On Tue, Jun 06, 2006 at 03:20:34AM +0200, Dominic Son wrote:> I''m concerned when I convert to real produciton, going live, if there''s > going to be the same delay, plus additional bandwith traveling time.There is a huge difference between development and production modes. Development reloads everything for every request; production does not :-)> I am running on a pentium 4..I don''t know what happens in Instant Rails; but out of the standard servers, WEBrick is slower than lighttpd; Apache on CGI is slower than all of them :-)> Insights on speed..Switch your app to Production mode for a while, see what happens :-) -jim
Hi Jim. Switched it to production. Pressed OK. Closed out my browser, reopened it, went to my production, still a lag of about 3 seconds (the same as before) tried using webrick, same time. When you go to your production on your localhost, do your pages pop up instantly (like javascript, php, html speed) or is this little lag normal? Thanks Jim Cheetham wrote:> On Tue, Jun 06, 2006 at 03:20:34AM +0200, Dominic Son wrote: >> I''m concerned when I convert to real produciton, going live, if there''s >> going to be the same delay, plus additional bandwith traveling time. > > There is a huge difference between development and production modes. > Development reloads everything for every request; production does not > :-) > >> I am running on a pentium 4.. > > I don''t know what happens in Instant Rails; but out of the standard > servers, WEBrick is slower than lighttpd; Apache on CGI is slower than > all of them :-) > >> Insights on speed.. > > Switch your app to Production mode for a while, see what happens :-) > > -jim-- Posted via http://www.ruby-forum.com/.
Jon Gretar Borgthorsson
2006-Jun-06 02:37 UTC
[Rails] Re: Instant Rails speed on my puter..
you should not have many problems when deloying. Must be something related to Instant Rails. I have noticed some slight lag on my server the first time a site is loaded after restart. About 2-3 seconds. But thats just for the first user for the first time. And it might just be my server. On 6/6/06, Dominic Son <dominicson@gmail.com> wrote:> Hi Jim. Switched it to production. Pressed OK. Closed out my browser, > reopened it, went to my production, still a lag of about 3 seconds (the > same as before) > tried using webrick, same time. > > When you go to your production on your localhost, do your pages pop up > instantly (like javascript, php, html speed) or is this little lag > normal? > > Thanks > > > Jim Cheetham wrote: > > On Tue, Jun 06, 2006 at 03:20:34AM +0200, Dominic Son wrote: > >> I''m concerned when I convert to real produciton, going live, if there''s > >> going to be the same delay, plus additional bandwith traveling time. > > > > There is a huge difference between development and production modes. > > Development reloads everything for every request; production does not > > :-) > > > >> I am running on a pentium 4.. > > > > I don''t know what happens in Instant Rails; but out of the standard > > servers, WEBrick is slower than lighttpd; Apache on CGI is slower than > > all of them :-) > > > >> Insights on speed.. > > > > Switch your app to Production mode for a while, see what happens :-) > > > > -jim > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/
On Tue, 6 Jun 2006 02:37:01 +0000, Jon Gretar Borgthorsson wrote:> I have noticed some slight lag on my server the first time a site is > loaded after restart. About 2-3 seconds. But thats just for the first > user for the first time. And it might just be my server.The first time it needs to load a lot of stuff. The most important thing are that successive requests perform well.
On 6/6/06, Dominic Son <dominicson@gmail.com> wrote:> Hi Jim. Switched it to production. Pressed OK. Closed out my browser, > reopened it, went to my production, still a lag of about 3 seconds (the > same as before) > tried using webrick, same time.DNS? Maby your browser is trying to lookup localhost but then gives up after 3 secs. regards Claus
Rails applications will run much slower on Windows. It''s an unfortunate reality. Like any other platform, you should take appropriate steps to measure performance. On an average Windows server using one SGCI process, you can expect to serve about 5 to 7 requests per second, and each user will proably see 1 to 3 seconds response time. You can help this along by ensuring that you are making use of caching and ensuring that your database interaction is as optimized as possible (eager loading is key). 5 requests a day will allow you to serve about 50,000 users in a 24 hour period. However, you should be concerned with how long users have to wait. If you don''t have enough dispatchers, then your users can end up waiting around until the server gets to them. If you need rock-solid performance and speed, you really need to consider moving to lighttpd+mongrel on Linux. I have outlines some strategies for deployment on Windows that I hope you will find helpful. Any of these strategies should provide you with a solid application platform on Windows that will work for applications with small to medium loads. http://www.napcs.com/howto/rails/deploy/ On 6/6/06, Claus Guttesen <kometen@gmail.com> wrote:> On 6/6/06, Dominic Son <dominicson@gmail.com> wrote: > > Hi Jim. Switched it to production. Pressed OK. Closed out my browser, > > reopened it, went to my production, still a lag of about 3 seconds (the > > same as before) > > tried using webrick, same time. > > DNS? Maby your browser is trying to lookup localhost but then gives up > after 3 secs. > > regards > Claus > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Dominic Son wrote:> Hi. > > I''ve installed Instant Rails, and when testing my rails apps, I''m > noticing the load time is quite noticable. > > I''m concerned when I convert to real produciton, going live, if there''s > going to be the same delay, plus additional bandwith traveling time. > > I am running on a pentium 4.. > > Insights on speed.. > > Thanks > > Dominic SonDon''t worry too much about it. I develop with Windows+Webrick+DevelopmentMode and its quite slow. But when I deploy the app the Linux+Lighttpd+ProductionMode it''s wicked fast. -- Posted via http://www.ruby-forum.com/.
2006/6/6, Dominic Son <dominicson@gmail.com>:> Hi Jim. Switched it to production. Pressed OK. Closed out my browser, > reopened it, went to my production, still a lag of about 3 seconds (the > same as before) tried using webrick, same time. >I''ve had performance like that for Apache CGI, but on WebRick I have no lag that bad, on Win XP. When you are running in webrick, you can see the requests printed out to the command window. With the three second lag, do you see the request show up, then wait three seconds for your page to come up in the browser, or do you wait three seconds and then see the request in the webrick window? Douglas
Brian Hogan wrote:> Rails applications will run much slower on Windows. It''s an > unfortunate reality. Like any other platform, you should take > appropriate steps to measure performance. > > On an average Windows server using one SGCI process, you can expect to > serve about 5 to 7 requests per second, and each user will proably see > 1 to 3 seconds response time.Thanks for the insights Brian. Any luck/attempts to locate the performance bottlenecks on Windows? I''ve been wondering if it''s the Ruby interpreter itself. I run dual boot Win/Linux and notice that everything ruby seems to run faster under linux (e.g. my tests run 5-10x faster). phil
Phil: It is most definitely the Ruby interpreter. In fact, I actually find that 1.8.2-15 works better than 1.8.4 on my systems. Some folks who manage to get Ruby running via Cygwin have seen better performance. I''m not to the point where I want to go that route because I can easily hop to Linux for deployment. On 6/6/06, Phillip Kast <phil@unimedia.org> wrote:> Brian Hogan wrote: > > Rails applications will run much slower on Windows. It''s an > > unfortunate reality. Like any other platform, you should take > > appropriate steps to measure performance. > > > > On an average Windows server using one SGCI process, you can expect to > > serve about 5 to 7 requests per second, and each user will proably see > > 1 to 3 seconds response time. > > Thanks for the insights Brian. Any luck/attempts to locate the > performance bottlenecks on Windows? > I''ve been wondering if it''s the Ruby interpreter itself. I run dual boot > Win/Linux and notice that everything ruby seems to run faster under > linux (e.g. my tests run 5-10x faster). > > phil > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On 6/6/06, Alex Wayne <rubyonrails@beautifulpixel.com> wrote:> > Dominic Son wrote: > > Hi. > > > > I''ve installed Instant Rails, and when testing my rails apps, I''m > > noticing the load time is quite noticable. > > > > I''m concerned when I convert to real produciton, going live, if there''s > > going to be the same delay, plus additional bandwith traveling time. > > > > I am running on a pentium 4.. > > > > Insights on speed.. > > > > Thanks > > > > Dominic Son > > Don''t worry too much about it. I develop with > Windows+Webrick+DevelopmentMode and its quite slow. But when I deploy > the app the Linux+Lighttpd+ProductionMode it''s wicked fast.Even so, it''d be nice to know what''s going on, because this is definitely an anomoly. I''ve seen scatterred reports of this kind of slowdown, but the majority of Instant Rails users do not seem to have this problem. I''d suggest posting this to the Instant Rails mailing list: http://rubyforge.org/mail/?group_id=904 Curt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060607/a5ca9d6f/attachment-0001.html