I found that if many users access to Rails at the same time, users will wait for a long time. How can I set the concurrence user number in Rails? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
First, what is your set up? What is the hardware you are running Rails on? What else is running on the machine that might impact Rails? What database are you using and how is it configured? Are you running in development or production mode? What timings does your log file tell you? What do you mean by ''a long time''. Hours, minutes, seconds? What do you mean by ''many users''. Thousands, hundreds, dozens? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter Hickman wrote:> First, what is your set up? > > What is the hardware you are running Rails on?It is running on 2G memory hardware with Fedora system.> What else is running on the machine that might impact Rails?There isn''t any processes running on this machine.> What database are you using and how is it configured?I am using MySql.> Are you running in development or production mode?Production mode.> What timings does your log file tell you?> What do you mean by ''a long time''. Hours, minutes, seconds?Several minutes.> What do you mean by ''many users''. Thousands, hundreds, dozens?5 to 10 users. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I just tried. If one user run a time-caused job on Rails server. Other users have to wait until it finished. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter Hickman
2010-Jun-25 09:05 UTC
Re: Re: How can I improvement concurrence performance?
On 25 June 2010 09:47, Zhao Yi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Peter Hickman wrote: > > First, what is your set up? > > > > What is the hardware you are running Rails on? > It is running on 2G memory hardware with Fedora system. > >2G is plenty of memory. I take it the disk and cpu are reasonable.> > What else is running on the machine that might impact Rails? > There isn''t any processes running on this machine. > > > What database are you using and how is it configured? > I am using MySql. > >Thats fine too.> > Are you running in development or production mode? > Production mode. > > > What timings does your log file tell you? >In your log file there will be lines like Completed in 3ms (View: 0, DB: 1) | 200 OK [http://... after each request. This says that the request took 3ms and that 1ms of that was taken up by the database and the view rendered so fast that is wasn''t worth measuring. The format may be a little different depending on the version of rails you have but this information is a good place to start. Find the log lines for the requests that are taking a long time and see how much of the time taken to serve a request is spent in the database. This then will give us somewhere to look.> > > What do you mean by ''a long time''. Hours, minutes, seconds? > Several minutes. > >That sounds really bad. At peak times our system handle 1000''s of concurrent requests and we rarely hit more than 8 seconds per request.> > What do you mean by ''many users''. Thousands, hundreds, dozens? > 5 to 10 users. >That is not many users by any stretch of the imagination. Lets see what the logs say. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Michael Pavling
2010-Jun-25 12:04 UTC
Re: Re: How can I improvement concurrence performance?
On 25 June 2010 09:49, Zhao Yi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I just tried. If one user run a time-caused job on Rails server. Other > users have to wait until it finished.Any chance you''re running your Rails server as a single instance of Mongrel? If so, using a Mongrel cluster will help very quickly and easily; and longer term Phusion Passenger would be even better. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
The log file is waiting at this line: ^[[4;35;1mCGI::Session::ActiveRecordStore::Session Update (0.000096)^[[0m ^[[0mUPDATE `sessions` SET `updated_at` = ''2010-06-28 03:20:03'', `data` = ''BAh7CjoMcm9vdF9pZDA6DHVzZXJfaWRpADoOdXNlcl9uYW1lIgxidWlsZGVy\nOhFvcmlnaW5hbF91cmkiIC9idWlsZC91cGRhdGVfbWFrZV9kZXZfdmlldyIK\nZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsG\nOgtub3RpY2UiHVBsZWFzZSBsb2cgaW4gYXMgYnVpbGRlcgY6CkB1c2VkewY7\nClQ=\n'' WHERE `id` = 6297^[[0m ^[[4;36;1mSQL (0.000017)^[[0m ^[[0;1mCOMMIT^[[0m ^[[4;35;1mCGI::Session::ActiveRecordStore::Session Load (0.000187)^[[0m ^[[0mSELECT * FROM `sessions` WHERE (session_id = ''4c4044505c20c44b79dacb53c236dbab'') LIMIT 1^[[0m Do you think it is waiting for Database response? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter Hickman wrote:> On 25 June 2010 09:47, Zhao Yi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> That sounds really bad. At peak times our system handle 1000''s of > concurrent > requests and we rarely hit more than 8 seconds per request. > >How can I set this number of concurrent? Is 1000 the default value for Rails? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter De Berdt
2010-Jun-28 07:41 UTC
Re: Re: Re: How can I improvement concurrence performance?
On 28 Jun 2010, at 05:29, Zhao Yi wrote:> Peter Hickman wrote: >> On 25 June 2010 09:47, Zhao Yi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> > >> That sounds really bad. At peak times our system handle 1000''s of >> concurrent >> requests and we rarely hit more than 8 seconds per request. >> >> > > How can I set this number of concurrent? Is 1000 the default value for > Rails?Your server''s processing power is the limit, there is no concurrency limit in Rails. 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
很多时候不是硬件不行,是代码写得有问题,5-10个人就挂了可以肯定是代码写得有问题,你不会是用webrick在跑吧? 2010/6/25 Zhao Yi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>> Peter Hickman wrote: > > First, what is your set up? > > > > What is the hardware you are running Rails on? > It is running on 2G memory hardware with Fedora system. > > > What else is running on the machine that might impact Rails? > There isn''t any processes running on this machine. > > > What database are you using and how is it configured? > I am using MySql. > > > Are you running in development or production mode? > Production mode. > > > What timings does your log file tell you? > > > What do you mean by ''a long time''. Hours, minutes, seconds? > Several minutes. > > > What do you mean by ''many users''. Thousands, hundreds, dozens? > 5 to 10 users. > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter Hickman
2010-Jun-28 08:44 UTC
Re: Re: Re: How can I improvement concurrence performance?
Well if we read this correctly the system updated the sessions table and then tried to read a record from the sessions table. That should have come back instantly. It would make sense if one request opened the session table but did not complete. Then the next request for the session table would have to wait until the previous one completes or times out. In theory you can get a deadlock like this with a database. But rails does a pretty good job (out of the box) of not generating such errors. Here''s something you might try. You are obviously using the database to store session data. If you can reproduce this problem in development try turning off storing sessions in the database. I think it is the ''config.action_controller.session_store'' parameter in config/environment.rb So 1) Reproduce the problem in development 2) Disable the storing of sessions in the database 3) See if the problem persists If the problem is reproducible in development and goes away when you stop storing sessions in the database then we will know at least where the problem lies. Finding out what the problem is however is something else entirely :) On 28 June 2010 04:20, Zhao Yi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> The log file is waiting at this line: > > ^[[4;35;1mCGI::Session::ActiveRecordStore::Session Update > (0.000096)^[[0m ^[[0mUPDATE `sessions` SET `updated_at` = ''2010-06-28 > 03:20:03'', `data` > > ''BAh7CjoMcm9vdF9pZDA6DHVzZXJfaWRpADoOdXNlcl9uYW1lIgxidWlsZGVy\nOhFvcmlnaW5hbF91cmkiIC9idWlsZC91cGRhdGVfbWFrZV9kZXZfdmlldyIK\nZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsG\nOgtub3RpY2UiHVBsZWFzZSBsb2cgaW4gYXMgYnVpbGRlcgY6CkB1c2VkewY7\nClQ=\n'' > WHERE `id` = 6297^[[0m > ^[[4;36;1mSQL (0.000017)^[[0m ^[[0;1mCOMMIT^[[0m > ^[[4;35;1mCGI::Session::ActiveRecordStore::Session Load > (0.000187)^[[0m ^[[0mSELECT * FROM `sessions` WHERE (session_id > ''4c4044505c20c44b79dacb53c236dbab'') LIMIT 1^[[0m > > > Do you think it is waiting for Database response? > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter Hickman
2010-Jun-28 08:48 UTC
Re: Re: Re: How can I improvement concurrence performance?
On 28 June 2010 08:41, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> > Your server''s processing power is the limit, there is no concurrency limit > in Rails. > > > Best regards > > > Peter De Berdt >True but given that the system has 2G of ram and is not really running anything else I would expect that the OPs system would be capable of handling 10 concurrent requests. Besides there may be no concurrency limits in rails but if you were running it behind a web server (such as apache) then the limit might be imposed by the web server. But here it is looking more like a locking problem with the sessions table at this point. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tim Teng wrote:> 很多时候不是硬件不行,是代码写得有问题,5-10个人就挂了可以肯定是代码写得有问题,你不会是用webrick在跑吧? > > 2010/6/25 Zhao Yi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>我没有用webrick,就是用ruby script/server跑的 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Xianggong
2010-Jun-28 08:54 UTC
Re: Re: Re: How can I improvement concurrence performance?
script/server will invoke webrick by default, and webrick of course is a single thread server. So test your app with other servers and check whether it still performs poor. 在 2010年6月28日 下午4:48,Zhao Yi <lists@ruby-forum.com>写道:> Tim Teng wrote: > > 很多时候不是硬件不行,是代码写得有问题,5-10个人就挂了可以肯定是代码写得有问题,你不会是用webrick在跑吧? > > > > 2010/6/25 Zhao Yi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > > 我没有用webrick,就是用ruby script/server跑的 > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tim Teng wrote:> script/server will invoke webrick by default, and webrick of course is a > single thread server. So test your app with other servers and check > whether > it still performs poor. > > 在 2010年6月28日 下午4:48,Zhao Yi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>写道:What do you mean by "other servers"? Do you know other ways to run the server? Thanks -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Xianggong
2010-Jun-28 09:21 UTC
Re: Re: Re: Re: How can I improvement concurrence performance?
Well, have a try ''Passenger'' server, or ''Thin'', ''ngix'', etc 2010/6/28 Zhao Yi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>> Tim Teng wrote: > > script/server will invoke webrick by default, and webrick of course is a > > single thread server. So test your app with other servers and check > > whether > > it still performs poor. > > > > 在 2010年6月28日 下午4:48,Zhao Yi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>写道: > > What do you mean by "other servers"? Do you know other ways to run the > server? > > Thanks > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Try to use some third party web service to host your app, like Heroku or Amazon Web Service EC2. Cheers, Lecky Lao On Jun 25, 6:25 pm, Zhao Yi <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I found that if many users access to Rails at the same time, users will > wait for a long time. How can I set the concurrence user number in > Rails? > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Joe Developer
2010-Jun-28 15:32 UTC
Re: Re: How can I improvement concurrence performance?
Try unicorn, it is dead easy; sudo gem install unicorn cd /yourRailsRoot unicorn_rails it will listen on 8080 by default. On Mon, Jun 28, 2010 at 8:39 PM, Lecky <leckylao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Try to use some third party web service to host your app, like Heroku > or Amazon Web Service EC2. > > Cheers, > Lecky Lao > > On Jun 25, 6:25 pm, Zhao Yi <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > I found that if many users access to Rails at the same time, users will > > wait for a long time. How can I set the concurrence user number in > > Rails? > > -- > > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
hi unciron is non faster then mongrel or thins or passenger try analyze your applications, buy log, or tools such as new relic after this or refactor your app or go to another server (hetzner.de or rakspacecloud.com) Best Regards, dieinzige On 28 Jun, 2010,at 03:32 PM, Joe Developer <joe.d.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: Try unicorn, it is dead easy; sudo gem install unicorn cd /yourRailsRoot unicorn_rails it will listen on 8080 by default. On Mon, Jun 28, 2010 at 8:39 PM, Lecky <leckylao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: Try to use some third party web service to host your app, like Heroku or Amazon Web Service EC2. Cheers, Lecky Lao On Jun 25, 6:25 pm, Zhao Yi <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I found that if many users access to Rails at the same time, users will > wait for a long time. How can I set the concurrence user number in > Rails? > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Joe Developer
2010-Jun-28 22:03 UTC
Re: Re: How can I improvement concurrence performance?
On Tue, Jun 29, 2010 at 3:43 AM, dieinzige <dieinzige-BUHhN+a2lJ4@public.gmane.org> wrote:> hi > unciron is non faster then mongrel or thins or passenger > try analyze your applications, buy log, or tools such as new relic > after this > or refactor your app or go to another server (hetzner.de or > rakspacecloud.com) > > Best Regards, dieinzige > > For concurrency?Passenger is tied to apache which inherently scales poorly. Thin is nice, but unicorn still beats it on provisioning. Benchmarks: http://cmelbye.github.com/2009/10/04/thin-vs-unicorn.html Sure, one should make ensure a perfomant codebase. ruby-prof + KCachegrind ftw.> > > > > On 28 Jun, 2010,at 03:32 PM, Joe Developer <joed.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Try unicorn, it is dead easy; > > sudo gem install unicorn > > cd /yourRailsRoot > > unicorn_rails > > it will listen on 8080 by default. > > > On Mon, Jun 28, 2010 at 8:39 PM, Lecky <leckylao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Try to use some third party web service to host your app, like Heroku >> or Amazon Web Service EC2. >> >> Cheers, >> Lecky Lao >> >> On Jun 25, 6:25 pm, Zhao Yi <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> > I found that if many users access to Rails at the same time, users will >> > wait for a long time. How can I set the concurrence user number in >> > Rails? >> > -- >> > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Joe Developer
2010-Jun-28 22:10 UTC
Re: Re: How can I improvement concurrence performance?
On Tue, Jun 29, 2010 at 5:03 AM, Joe Developer <joe.d.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> > > On Tue, Jun 29, 2010 at 3:43 AM, dieinzige <dieinzige-BUHhN+a2lJ4@public.gmane.org> wrote: > >> hi >> unciron is non faster then mongrel or thins or passenger >> try analyze your applications, buy log, or tools such as new relic >> after this >> or refactor your app or go to another server (hetzner.de or >> rakspacecloud.com) >> >> Best Regards, dieinzige >> >> For concurrency? > > Passenger is tied to apache which inherently scales poorly. >Ah, I see Passenger also plays well with nginx now.> > Thin is nice, but unicorn still beats it on provisioning. > > Benchmarks: http://cmelbye.github.com/2009/10/04/thin-vs-unicorn.html > > Sure, one should make ensure a perfomant codebase. ruby-prof + KCachegrind > ftw. > > >> >> >> >> >> On 28 Jun, 2010,at 03:32 PM, Joe Developer <joed.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> >> Try unicorn, it is dead easy; >> >> sudo gem install unicorn >> >> cd /yourRailsRoot >> >> unicorn_rails >> >> it will listen on 8080 by default. >> >> >> On Mon, Jun 28, 2010 at 8:39 PM, Lecky <leckylao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>> Try to use some third party web service to host your app, like Heroku >>> or Amazon Web Service EC2. >>> >>> Cheers, >>> Lecky Lao >>> >>> On Jun 25, 6:25 pm, Zhao Yi <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >>> > I found that if many users access to Rails at the same time, users will >>> > wait for a long time. How can I set the concurrence user number in >>> > Rails? >>> > -- >>> > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To unsubscribe from this group, send email to >>> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/rubyonrails-talk?hl=en. >>> >>> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
lol use nginx with passenger but in really of rails development, when web server can handler more than 5r rps, its not slow point. Best Regards, dieinzige On 28 Jun, 2010,at 10:03 PM, Joe Developer <joe.d.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: On Tue, Jun 29, 2010 at 3:43 AM, dieinzige <dieinzige-BUHhN+a2lJ4@public.gmane.org> wrote: hi unciron is non faster then mongrel or thins or passenger try analyze your applications, buy log, or tools such as new relic after this or refactor your app or go to another server (hetzner.de or rakspacecloud.com) Best Regards, dieinzige For concurrency? Passenger is tied to apache which inherently scales poorly. Thin is nice, but unicorn still beats it on provisioning. Benchmarks: http://cmelbye.github.com/2009/10/04/thin-vs-unicorn.html Sure, one should make ensure a perfomant codebase. ruby-prof + KCachegrind ftw. On 28 Jun, 2010,at 03:32 PM, Joe Developer <joed.developer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: Try unicorn, it is dead easy; sudo gem install unicorn cd /yourRailsRoot unicorn_rails it will listen on 8080 by default. On Mon, Jun 28, 2010 at 8:39 PM, Lecky <leckylao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: Try to use some third party web service to host your app, like Heroku or Amazon Web Service EC2. Cheers, Lecky Lao On Jun 25, 6:25 pm, Zhao Yi <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I found that if many users access to Rails at the same time, users will > wait for a long time. How can I set the concurrence user number in > Rails? > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.