【问题标题】:Can key cache objects be moved on off-heap memory?可以在堆外内存上移动关键缓存对象吗?
【发布时间】:2018-10-08 17:26:36
【问题描述】:

slide 的第 11 页开始,memtable_allocation_type Cassandra 允许将 memtables 和键缓存对象保留在本机内存中,而不是 Java JVM 堆中。但我没有发现其他证据表明 memtable_allocation_type 可以改变 key cache 的位置。

我正在使用 apache-cassandra 3.11.3,并且正遭受低键缓存命中率的困扰。由于增加密钥缓存大小会导致长时间 gc,有没有办法将密钥缓存移动到堆外内存?

【问题讨论】:

    标签: cassandra cassandra-3.0


    【解决方案1】:

    不,现在密钥缓存仍在堆中。

    我不会说从 1/20(或 100Mb)增加到更高的值,例如 200-300Mb 会显着增加垃圾收集时间...

    【讨论】:

      猜你喜欢
      • 2011-01-07
      • 2013-01-14
      • 1970-01-01
      • 2018-09-27
      • 2017-08-26
      • 2019-10-07
      • 2013-10-18
      • 2017-05-16
      • 2013-08-21
      相关资源
      最近更新 更多