# Elastic Search 6.8.5 high cpu load

**URL:** <https://discuss.elastic.co/t/elastic-search-6-8-5-high-cpu-load/210641>\
**Category:** Elasticsearch\
**Created:** [December 5, 2019, 8:24am UTC](https://discuss.elastic.co/t/elastic-search-6-8-5-high-cpu-load/210641 "2019-12-05T08:24:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ioannigz](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@ioannigz](https://discuss.elastic.co/u/ioannigz)\
**Post date:** [December 5, 2019, 8:24am UTC](https://discuss.elastic.co/t/elastic-search-6-8-5-high-cpu-load/210641/1 "2019-12-05T08:24:47Z")

</div>

Hello. I am new to Elasticsearch. I use one installation on my server with version 6.8.5 for a magento 2 instance I have. I am using java-8-openjdk openjdk version "1.8.0\_222". Although it not the first time I use the same setup now in my last scenario I have high load in cpus with was not there before. In peak it goes up to 4.00 with htop saying JAVA 400% cpu.

 ![45%20AM](https://us1.discourse-cdn.com/elastic/original/3X/7/c/7c83b3de7a432061d0a87c2b187de7ee6aa5406c.png)  
I am using jvm options:

> -Xms15g  
> -Xmx15g  
> -XX:+UseConcMarkSweepGC  
> -XX:CMSInitiatingOccupancyFraction=75  
> -XX:+UseCMSInitiatingOccupancyOnly  
> -Des.networkaddress.cache.ttl=60  
> -Des.networkaddress.cache.negative.ttl=10  
> -XX:+AlwaysPreTouch  
> -Xss1m  
> -Djava.awt.headless=true  
> -Dfile.encoding=UTF-8  
> -Djna.nosys=true  
> -XX:-OmitStackTraceInFastThrow  
> -Dio.netty.noUnsafe=true  
> -Dio.netty.noKeySetOptimization=true  
> -Dio.netty.recycler.maxCapacityPerThread=0  
> -Dlog4j.shutdownHookEnabled=false  
> -Dlog4j2.disable.jmx=true  
> -Djava.io.tmpdir=${ES\_TMPDIR}  
> -XX:+HeapDumpOnOutOfMemoryError  
> -XX:HeapDumpPath=/var/lib/elasticsearch  
> -XX:ErrorFile=/var/log/elasticsearch/hs\_err\_pid%p.log  
> 8:-XX:+PrintGCDetails  
> 8:-XX:+PrintGCDateStamps  
> 8:-XX:+PrintTenuringDistribution  
> 8:-XX:+PrintGCApplicationStoppedTime  
> 8:-Xloggc:/var/log/elasticsearch/gc.log  
> 8:-XX:+UseGCLogFileRotation  
> 8:-XX:NumberOfGCLogFiles=32  
> 8:-XX:GCLogFileSize=64m  
> 9-:-Xlog:gc\*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m  
> 9-:-Djava.locale.providers=COMPAT  
> 10-:-XX:UseAVX=2

And elasticsearch.yml

> indices.query.bool.max\_clause\_count: 10024

I have specify JAVA\_HOME as elastic advice and I have no errors anywhere.

Maybe I should use other JDK version?

If someone could help me what to do will be much appreciated.  
Thank you

---

<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:** [January 2, 2020, 8:24am UTC](https://discuss.elastic.co/t/elastic-search-6-8-5-high-cpu-load/210641/2 "2020-01-02T08:24:51Z")

</div>

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