我有以下测试代码:
def loop_bucket_gets
bucket = Couchbase::Bucket.new({:node_list => ['xxx.xxx.xxx.xxx:8091', 'yyy.yyy.yyy.yyy:8091'],
:bucket => 'Foo',
:pool => 'default',
:expires_in => 1.day,
:default_format => :marshal,
:key_prefix => '_foo'
})
i = 0
loop do
begin
i += 1
bucket.get "ABC#{i}"
rescue ::Couchbase::Error::Base => e
nil
end
end
end
Run Code Online (Sandbox Code Playgroud)
当我在rails控制台中执行该方法时,内存泄漏.
我正在使用:
有任何想法吗?
更新:已 创建问题:https: //www.couchbase.com/issues/browse/RCBC-187
我如何在MacOSX上的一个命令中执行此操作?
git stash
git pull origin master
git stash pop
Run Code Online (Sandbox Code Playgroud)
我试过git stash && git pull origin mater && git stash apply并且工作正常.