开发者

mod_ruby on apache: Very slow

Even a request from the server itself takes about 7 seconds ( startpage of a "redmine" installa开发者_Python百科tion )..

When running ruby under WEBrick the same request only takes miliseconds...

I am absolutely new to ruby, so i have no idea where to start the investgation on this.. Or is the best solution to locally redirect the apache request to a WEBrick server?


If you want to make use of your apache setup, you can try mod_rails aka phusion passenger. The installation is straight forward and it performance is better than mongrel or webrick stack.


If you are using mod_ruby, each request starts a new instance of Ruby, serves the page, then discards it. That's stupid-slow. mod_rails, or Phusion Passenger, shares the interpreter and is wicked-fast.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜