ES 2.2.0 JVM溢出

时间:2016-04-12 10:39:48

标签: elasticsearch jvm kibana

我使用弹性2.2.0,配置如下:

> cluster.name: test_cluster
> node.name: test_node_1
> path.data: /mnt/elasticsearch/data
> path.logs: /var/log/elasticsearch

> network.bind_host:
>   - _local_
>   - _eth0:ipv4_

> network.publish_host: _eth0:ipv4_
> network.host: _eth0:ipv4_

> discovery.zen.ping.unicast.hosts: ["x:9301"]
> discovery.zen.ping_timeout: 30s
> bootstrap.mlockall: true

我在/ etc / default / elasticsearch中也有以下配置:

> ES_HEAP_SIZE=4g
> MAX_LOCKED_MEMORY=unlimited

当我在经过一些繁重的查询后使用Kibana查询集群(只有一个节点)时,我很快就达到了无法处理更多查询且集群速度超慢的程度。我得到“heap_used_percent”:99 并且GC时间非常高:

> b]->[3.8gb]/[3.9gb], all_pools {[young] [101.1mb]->[12.5mb]/[133.1mb]}{[survivor] [16.6mb]->[0b]/[16.6mb]}{[old] [3.8gb]->[3.8gb]/[3.8gb]}
> [2016-04-12 13:08:05,445][INFO ][monitor.jvm              ] [test_node_1] [gc][old][1115][72] duration [8.9s], collections [1]/[9.9s], total [8.9s]/[4.9m], memory [3.9gb]->[3.8gb]/[3.9gb], all_pools {[young] [121.1mb]->[2.8mb]/[133.1mb]}{[survivor] [16.6mb]->[0b]/[16.6mb]}{[old] [3.8gb]->[3.8gb]/[3.8gb]}
> [2016-04-12 13:08:18,375][INFO ][monitor.jvm              ] [test_node_1] [gc][old][1119][73] duration [9.1s], collections [1]/[9.9s], total [9.1s]/[5m], memory [3.8gb]->[3.8gb]/[3.9gb], all_pools {[young] [58.4mb]->[1.3mb]/[133.1mb]}{[survivor] [14.6mb]->[0b]/[16.6mb]}{[old] [3.8gb]->[3.8gb]/[3.8gb]}

有什么问题?我设置4g堆大小(机器总共有8g)我可以看到它不是一个swappiness问题,因为I / O很低。在kibana中进行几次查询之后,为什么群集会减慢这么多?

0 个答案:

没有答案