开发者

How to get memory usage in Rails app.?

开发者 https://www.devze.com 2022-12-15 23:27 出处:网络
For example, I have Update action in Product Controller. I want to measure how much memory consumption when the Update ac开发者_如何学Gotion being invoked.

For example, I have Update action in Product Controller. I want to measure how much memory consumption when the Update ac开发者_如何学Gotion being invoked.

thanks.


New Relic's RPM will do what you need - http://www.bestechvideos.com/2009/03/21/railslab-scaling-rails-episode-4-new-relic-rpm

also take a look at some of the answers here: ruby/ruby on rails memory leak detection


Ruby Memory Validator monitors memory allocation for Ruby applications.

If you want to modify your Ruby runtime to add a memory tracking API to it, take a look at this.

0

精彩评论

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