嘿~ 今天天气不错嘛

错误: [has_parent] no join field has been configured 导致Full GC?

Elasticsearch | 作者 sanjun | 发布于2019年12月19日 | 阅读数:3187

由于查询操作,填写了错误索引
GET withwinds-redpack-prod-v1.8-koc-20191219/_search
{
"size": 0,
"query": {
"bool": {
"must": [
{
"has_parent": {
"query": {
"bool": {
"filter": [
{
"term": {
"campaignId": {
"value": "wa57845a5c0fe466178262",
"boost": 1
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"parent_type": "user",
"score": true,
"ignore_unmapped": false,
"boost": 1
}
}
],
"filter": [
{
"term": {
"level": {
"value": 1,
"boost": 1
}
}
},
{
"script": {
"script": {
"source": "doc['parentId'].value != doc['userId'].value",
"lang": "painless"
},
"boost": 1
}
},
{
"exists": {
"field": "parentId",
"boost": 1
}
},
{
"exists": {
"field": "userId",
"boost": 1
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"aggregations": {
"termsAgg": {
"terms": {
"field": "parentId",
"size": 100000,
"min_doc_count": 1,
"shard_min_doc_count": 0,
"show_term_doc_count_error": false,
"order": [
{
"_count": "desc"
},
{
"_key": "asc"
}
]
},
"aggregations": {
"uv": {
"cardinality": {
"field": "userId"
}
},
"topHits": {
"top_hits": {
"from": 1,
"size": 10,
"version": false,
"explain": true
}
}
}
}
}
}

想了解一下,以上查询,是否会产生Full GC?
企业微信截图_95037612-a0b9-468f-90a8-9eb9bf9bc7c0.png
已邀请:
匿名用户

匿名用户

赞同来自:

FULLGC  很可能是聚合导致的。

Charele - Cisco4321

赞同来自:

请问下,你这个报错,你从哪里看出和GC有关系???
匿名用户

匿名用户

赞同来自:

聚合会占用大量的内存, 尤其是rcm 和 fm ,
 
可以使用命令查看,各节点的各个内存使用情况。
 
再看看,gc情况,一般发生这种事,有两种原因,
1,需求不合理
2,硬件资源不够。
 

要回复问题请先登录注册