# Slow searches in docker \[gc\]\[54958\] overhead, spent \[344ms\] collecting in the last \[1s\]

**URL:** <https://discuss.elastic.co/t/slow-searches-in-docker-gc-54958-overhead-spent-344ms-collecting-in-the-last-1s/186270>\
**Category:** Elasticsearch\
**Created:** [June 18, 2019, 1:53pm UTC](https://discuss.elastic.co/t/slow-searches-in-docker-gc-54958-overhead-spent-344ms-collecting-in-the-last-1s/186270 "2019-06-18T13:53:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iukea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iukea/32/49083_2.png) [@iukea](https://discuss.elastic.co/u/iukea)\
**Post date:** [June 18, 2019, 1:53pm UTC](https://discuss.elastic.co/t/slow-searches-in-docker-gc-54958-overhead-spent-344ms-collecting-in-the-last-1s/186270/1 "2019-06-18T13:53:08Z")

</div>

Hello, I am trying to run a Composite quarry over my data set.

Dataset size (20GB)

Elastic 6.8.0

My searches are extremely slow and I need some wisdom.

the server has NVMe drives. 15GB of ram

index settings  
{  
"settings": {  
"index": {  
"mapping": {  
"total\_fields": {  
"limit": "2000"  
}  
},  
"number\_of\_shards": "5",  
"provided\_name": "myindex",  
"creation\_date": "1560819152109",  
"number\_of\_replicas": "1",  
"uuid": "xKOSN3gxRXuzkaCxFFZdXA",  
"version": {  
"created": "6080099"  
}  
}  
},  
"defaults": {  
"index": {  
"max\_inner\_result\_window": "100",  
"unassigned": {  
"node\_left": {  
"delayed\_timeout": "1m"  
}  
},  
"max\_terms\_count": "65536",  
"lifecycle": {  
"name": "",  
"rollover\_alias": "",  
"indexing\_complete": "false"  
},  
"routing\_partition\_size": "1",  
"max\_docvalue\_fields\_search": "100",  
"merge": {  
"scheduler": {  
"max\_thread\_count": "1",  
"auto\_throttle": "true",  
"max\_merge\_count": "6"  
},  
"policy": {  
"reclaim\_deletes\_weight": "2.0",  
"floor\_segment": "2mb",  
"max\_merge\_at\_once\_explicit": "30",  
"max\_merge\_at\_once": "10",  
"max\_merged\_segment": "5gb",  
"expunge\_deletes\_allowed": "10.0",  
"segments\_per\_tier": "10.0",  
"deletes\_pct\_allowed": "33.0"  
}  
},  
"max\_refresh\_listeners": "1000",  
"max\_regex\_length": "1000",  
"load\_fixed\_bitset\_filters\_eagerly": "true",  
"number\_of\_routing\_shards": "5",  
"write": {  
"wait\_for\_active\_shards": "1"  
},  
"mapping": {  
"coerce": "false",  
"nested\_fields": {  
"limit": "50"  
},  
"depth": {  
"limit": "20"  
},  
"ignore\_malformed": "false"  
},  
"source\_only": "false",  
"soft\_deletes": {  
"enabled": "false",  
"retention": {  
"operations": "0"  
},  
"retention\_lease": {  
"period": "12h"  
}  
},  
"max\_script\_fields": "32",  
"query": {  
"default\_field": [  
"\*"  
],  
"parse": {  
"allow\_unmapped\_fields": "true"  
}  
},  
"format": "0",  
"frozen": "false",  
"sort": {  
"missing": ,  
"mode": ,  
"field": ,  
"order":   
},  
"priority": "1",  
"codec": "default",  
"max\_rescore\_window": "10000",  
"max\_adjacency\_matrix\_filters": "100",  
"gc\_deletes": "60s",  
"optimize\_auto\_generated\_id": "true",  
"max\_ngram\_diff": "1",  
"translog": {  
"generation\_threshold\_size": "64mb",  
"flush\_threshold\_size": "512mb",  
"sync\_interval": "5s",  
"retention": {  
"size": "512mb",  
"age": "12h"  
},  
"durability": "REQUEST"  
},  
"auto\_expand\_replicas": "false",  
"mapper": {  
"dynamic": "true"  
},  
"requests": {  
"cache": {  
"enable": "true"  
}  
},  
"data\_path": "",  
"highlight": {  
"max\_analyzed\_offset": "-1"  
},  
"routing": {  
"rebalance": {  
"enable": "all"  
},  
"allocation": {  
"enable": "all",  
"total\_shards\_per\_node": "-1"  
}  
},  
"search": {  
"slowlog": {  
"level": "TRACE",  
"threshold": {  
"fetch": {  
"warn": "-1",  
"trace": "-1",  
"debug": "-1",  
"info": "-1"  
},  
"query": {  
"warn": "-1",  
"trace": "-1",  
"debug": "-1",  
"info": "-1"  
}  
}  
},  
"throttled": "false"  
},  
"fielddata": {  
"cache": "node"  
},  
"default\_pipeline": "\_none",  
"max\_slices\_per\_scroll": "1024",  
"shard": {  
"check\_on\_startup": "false"  
},  
"xpack": {  
"watcher": {  
"template": {  
"version": ""  
}  
},  
"version": "",  
"ccr": {  
"following\_index": "false"  
}  
},  
"percolator": {  
"map\_unmapped\_fields\_as\_text": "false",  
"map\_unmapped\_fields\_as\_string": "false"  
},  
"allocation": {  
"max\_retries": "5"  
},  
"refresh\_interval": "1s",  
"indexing": {  
"slowlog": {  
"reformat": "true",  
"threshold": {  
"index": {  
"warn": "-1",  
"trace": "-1",  
"debug": "-1",  
"info": "-1"  
}  
},  
"source": "1000",  
"level": "TRACE"  
}  
},  
"compound\_format": "0.1",  
"blocks": {  
"metadata": "false",  
"read": "false",  
"read\_only\_allow\_delete": "false",  
"read\_only": "false",  
"write": "false"  
},  
"max\_result\_window": "10000",  
"store": {  
"stats\_refresh\_interval": "10s",  
"type": "",  
"fs": {  
"fs\_lock": "native"  
},  
"preload":   
},  
"queries": {  
"cache": {  
"enabled": "true"  
}  
},  
"ttl": {  
"disable\_purge": "false"  
},  
"warmer": {  
"enabled": "true"  
},  
"max\_shingle\_diff": "3",  
"query\_string": {  
"lenient": "false"  
}  
}  
}  
}

I keep on seeing the following collection event happening in my logs

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/f/5ff61cc5e450fd0117b46ada468fe55f290436c5.png)

**docker compose settings**

Docker Compose elk settings are below

![image](https://us1.discourse-cdn.com/elastic/original/3X/6/d/6de293a2ba68f025adbc79352c57f70b14cba971.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 16, 2019, 1:53pm UTC](https://discuss.elastic.co/t/slow-searches-in-docker-gc-54958-overhead-spent-344ms-collecting-in-the-last-1s/186270/2 "2019-07-16T13:53:09Z")

</div>

Closed on July 16, 2019, 1:53pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
