小编Edg*_*ega的帖子

Rails&Couchbase - 内存泄漏

我有以下测试代码:

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控制台中执行该方法时,内存泄漏.

我正在使用:

  • couchbase 1.3.10 gem
  • libcouchbase 2.4.3

有任何想法吗?

更新:已 创建问题:https: //www.couchbase.com/issues/browse/RCBC-187

ruby caching ruby-on-rails couchbase

19
推荐指数
1
解决办法
502
查看次数

如何1. git stash 2. git pull origin master 3. git stash apply,on single command?

我如何在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并且工作正常.

git macos command-line

1
推荐指数
1
解决办法
250
查看次数

标签 统计

caching ×1

command-line ×1

couchbase ×1

git ×1

macos ×1

ruby ×1

ruby-on-rails ×1