开发者

Normal memory usage in Rails

开发者 https://www.devze.com 2022-12-22 17:34 出处:网络
I\'m wondering how much memory usage is normal for a ruby process in a rails application? I really need something to benchmark against.

I'm wondering how much memory usage is normal for a ruby process in a rails application? I really need something to benchmark against.

In my dev environment WEBrick a single ruby process uses about 61mb to handle 10 simultaneous requests going non stop. In my prod environment Apache2+Passenger starts 7 ruby processes to handle the same ammount of requests. Each of those processes also use up about 60mb. Is this normal?

Also, where do 开发者_运维百科I configure how many ruby processes Passenger can start? Or will it start as many as there is memory available for?

Thank you!

ps. Using Rails3 beta. ds.


The memory usage depend of your application. How route/controller/model have you.

60Mo of memory seems not important. It's a normal thing.


Right now our 5 ruby processes consume a total of 423 MB compared to the MySQL Server with 62.5 MB. The app runs on about 5000 lines of code without any significantly large computations.

0

精彩评论

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