【发布时间】:2019-04-11 10:45:51
【问题描述】:
我正在对 Elasticsearch 进行基准测试并观察到映射的缓冲池很高,当同时执行繁重的索引和搜索操作时它会继续增长。
"buffer_pools":
{"mapped":{"count":1264,"used_in_bytes":114462548303,"total_capacity_in_bytes":114462548303},"direct":{"count":141,"used_in_bytes":539763989,"total_capacity_in_bytes":539763988}},"classes":{"current_loaded_count":11601,"total_loaded_count":11820,"total_unloaded_count":219}}
buffer_pools 上大约有 114GB。 Elasticsearch 运行在具有 32GB RAM(ES 堆为 16GB)、启用内存锁定的机器上。
请就 buffer_pools 上内存使用率高的原因提出建议。为什么它大大超过了 RAM?这是否意味着交换正在以某种方式发生?
【问题讨论】:
标签: performance elasticsearch memory