Thanks @Christian_Dahlqvist for your response:
Here's heap size:
heap.current heap.percent heap.max
15.2gb 95 16gb
Also the sever is 32gb of RAM and the heap size in jvm.options is -Xms16g -Xmx16g
The cluster has more than 200 active shards and this is a single node with no replicas, does that influence?.
Here's the output of the stats API
{
"_nodes" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"cluster_name" : "qis-ep",
"cluster_uuid" : "JZF8_1tGRe2mN9JubP1u_A",
"timestamp" : 1663788253589,
"status" : "red",
"indices" : {
"count" : 18,
"shards" : {
"total" : 18,
"primaries" : 18,
"replication" : 0.0,
"index" : {
"shards" : {
"min" : 1,
"max" : 1,
"avg" : 1.0
},
"primaries" : {
"min" : 1,
"max" : 1,
"avg" : 1.0
},
"replication" : {
"min" : 0.0,
"max" : 0.0,
"avg" : 0.0
}
}
},
"docs" : {
"count" : 32073266,
"deleted" : 2571
},
"store" : {
"size_in_bytes" : 12300364879,
"reserved_in_bytes" : 0
},
"fielddata" : {
"memory_size_in_bytes" : 0,
"evictions" : 0
},
"query_cache" : {
"memory_size_in_bytes" : 0,
"total_count" : 0,
"hit_count" : 0,
"miss_count" : 0,
"cache_size" : 0,
"cache_count" : 0,
"evictions" : 0
},
"completion" : {
"size_in_bytes" : 0
},
"segments" : {
"count" : 253,
"memory_in_bytes" : 207333756,
"terms_memory_in_bytes" : 174175296,
"stored_fields_memory_in_bytes" : 130136,
"term_vectors_memory_in_bytes" : 0,
"norms_memory_in_bytes" : 25046272,
"points_memory_in_bytes" : 0,
"doc_values_memory_in_bytes" : 7982052,
"index_writer_memory_in_bytes" : 0,
"version_map_memory_in_bytes" : 0,
"fixed_bit_set_memory_in_bytes" : 296,
"max_unsafe_auto_id_timestamp" : 1663778615179,
"file_sizes" : { }
},
"mappings" : {
"field_types" : [
{
"name" : "binary",
"count" : 8,
"index_count" : 1
},
{
"name" : "boolean",
"count" : 59,
"index_count" : 18
},
{
"name" : "date",
"count" : 2008,
"index_count" : 273
},
{
"name" : "flattened",
"count" : 9,
"index_count" : 1
},
{
"name" : "float",
"count" : 2728991,
"index_count" : 13
},
{
"name" : "integer",
"count" : 22,
"index_count" : 5
},
{
"name" : "ip",
"count" : 10,
"index_count" : 10
},
{
"name" : "keyword",
"count" : 372311,
"index_count" : 277
},
{
"name" : "long",
"count" : 6966,
"index_count" : 32
},
{
"name" : "nested",
"count" : 11,
"index_count" : 6
},
{
"name" : "object",
"count" : 275449,
"index_count" : 276
},
{
"name" : "text",
"count" : 372090,
"index_count" : 277
},
{
"name" : "unsigned_long",
"count" : 1764,
"index_count" : 12
}
]
},
"analysis" : {
"char_filter_types" : [ ],
"tokenizer_types" : [ ],
"filter_types" : [ ],
"analyzer_types" : [ ],
"built_in_char_filters" : [ ],
"built_in_tokenizers" : [ ],
"built_in_filters" : [ ],
"built_in_analyzers" : [ ]
}
},
"nodes" : {
"count" : {
"total" : 1,
"coordinating_only" : 0,
"data" : 1,
"data_cold" : 1,
"data_content" : 1,
"data_hot" : 1,
"data_warm" : 1,
"ingest" : 1,
"master" : 1,
"ml" : 1,
"remote_cluster_client" : 1,
"transform" : 1,
"voting_only" : 0
},
"versions" : [
"7.10.2"
],
"os" : {
"available_processors" : 8,
"allocated_processors" : 8,
"names" : [
{
"name" : "Linux",
"count" : 1
}
],
"pretty_names" : [
{
"pretty_name" : "Debian GNU/Linux 10 (buster)",
"count" : 1
}
],
"mem" : {
"total_in_bytes" : 32893620224,
"free_in_bytes" : 3265601536,
"used_in_bytes" : 29628018688,
"free_percent" : 10,
"used_percent" : 90
}
},
"process" : {
"cpu" : {
"percent" : 66
},
"open_file_descriptors" : {
"min" : 537,
"max" : 537,
"avg" : 537
}
},
"jvm" : {
"max_uptime_in_millis" : 49787,
"versions" : [
{
"version" : "11.0.14",
"vm_name" : "OpenJDK 64-Bit Server VM",
"vm_version" : "11.0.14+9-post-Debian-1deb10u1",
"vm_vendor" : "Debian",
"bundled_jdk" : true,
"using_bundled_jdk" : false,
"count" : 1
}
],
"mem" : {
"heap_used_in_bytes" : 13734673448,
"heap_max_in_bytes" : 17179869184
},
"threads" : 72
},
"fs" : {
"total_in_bytes" : 1055813427200,
"free_in_bytes" : 971787694080,
"available_in_bytes" : 918083932160
},
"plugins" : [ ],
"network_types" : {
"transport_types" : {
"security4" : 1
},
"http_types" : {
"security4" : 1
}
},
"discovery_types" : {
"single-node" : 1
},
"packaging_types" : [
{
"flavor" : "default",
"type" : "deb",
"count" : 1
}
],
"ingest" : {
"number_of_pipelines" : 1,
"processor_stats" : {
"gsub" : {
"count" : 0,
"failed" : 0,
"current" : 0,
"time_in_millis" : 0
},
"script" : {
"count" : 0,
"failed" : 0,
"current" : 0,
"time_in_millis" : 0
}
}
}
}
}
Also sometimes when I restart elasticsearch for a couple of seconds I'm able to execute some queries than the heap size gets full very fast and get the 429 permanent error again.