Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rbkit shows the RES mem size grows, but top shows RES keeps flat #142

Open
dzl84 opened this issue Aug 3, 2017 · 0 comments
Open

Rbkit shows the RES mem size grows, but top shows RES keeps flat #142

dzl84 opened this issue Aug 3, 2017 · 0 comments

Comments

@dzl84
Copy link

dzl84 commented Aug 3, 2017

I use rbkit to profile the following code. It runs with ruby 2.2.0. After running for 1min, rbkit shows RES size is ~100MB, while top shows the RES is about 13MB.

require 'rbkit'
require 'timeout'
Rbkit.start_server

100000.times do
timeout(3) {
puts 'hello mem!'.freeze
sleep(2)
}
end

So what is the RES size in rbkit? How can I get the same value of top result?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant