rbkit icon indicating copy to clipboard operation
rbkit copied to clipboard

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

Open dzl84 opened this issue 7 years ago • 0 comments

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?

dzl84 avatar Aug 03 '17 22:08 dzl84