# ES1.7.2 - High CPU usage

**URL:** https://discuss.elastic.co/t/es1-7-2-high-cpu-usage/160649
**Category:** Elasticsearch
**Created:** [December 13, 2018, 2:05am UTC](https://discuss.elastic.co/t/es1-7-2-high-cpu-usage/160649 "2018-12-13T02:05:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![saihariharan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saihariharan/32/38764_2.png) [@saihariharan](https://discuss.elastic.co/u/saihariharan)
#### Post date: [December 13, 2018, 2:05am UTC](https://discuss.elastic.co/t/es1-7-2-high-cpu-usage/160649/1 "2018-12-13T02:05:13Z")

</div>

We are facing high CPU usage on a lone node in a 5 node ES 1.7.2 cluster. All the cluster is currently doing is replicating/sync'ng documents from a Couchbase cluster through the transport-couchbase plugin.

CPU is around 80% on a single node. The remaining 4 nodes do not have this issue.

Upon analyzing the thread dump the following code seems to be causing the issue

```
"elasticsearch[Henry Peter Gyrich][search][T#35]" #11890 daemon prio=5 os_prio=0 tid=0x00007f938811e800 nid=0x268f runnable [0x00007f9379bdb000]
   java.lang.Thread.State: RUNNABLE
        at org.elasticsearch.common.lucene.docset.AndDocIdSet$AndBits.get(AndDocIdSet.java:116)
        at org.elasticsearch.common.lucene.docset.BitsDocIdSetIterator.matchDoc(BitsDocIdSetIterator.java:45)
        at org.elasticsearch.common.lucene.docset.MatchDocIdSetIterator.nextDoc(MatchDocIdSetIterator.java:50)
        at org.apache.lucene.search.FilteredDocIdSetIterator.nextDoc(FilteredDocIdSetIterator.java:59)
        at org.apache.lucene.search.ConstantScoreQuery$ConstantScorer.nextDoc(ConstantScoreQuery.java:257)
        at org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:192)
        at org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:163)
        at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:35)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:621)
        at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:191)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:309)
        at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:117)
        at org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:301)
        at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:312)
        at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:776)
        at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:767)
        at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:279)
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

```

I checked another post with similar issue on the same ES version. However that relates to User queries on ES and nothing related to document indexing. Has anybody had similar issues or have any suggestions?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [December 13, 2018, 9:11am UTC](https://discuss.elastic.co/t/es1-7-2-high-cpu-usage/160649/2 "2018-12-13T09:11:46Z")

</div>

it is the same in this case, something/someone is executing a search on your cluster, which takes some CPU. However you left out the part, where it is shown how much percent are actually used for this (it might be very low and not significant).

I guess you heard this before, but Elasticsearch 1.7 is not being fixed/patched since a few years, so I really ought you to upgrade for a faster/more stable/bugfree version of Elasticsearch 🙂

---

<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 10, 2019, 9:11am UTC](https://discuss.elastic.co/t/es1-7-2-high-cpu-usage/160649/3 "2019-01-10T09:11:55Z")

</div>

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