# Multi-core support for elasticsearch

**URL:** <https://discuss.elastic.co/t/multi-core-support-for-elasticsearch/14073>\
**Category:** Elasticsearch\
**Created:** [October 23, 2013, 2:53pm UTC](https://discuss.elastic.co/t/multi-core-support-for-elasticsearch/14073 "2013-10-23T14:53:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashish\_Nigam\_3](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Ashish\_Nigam\_3](https://discuss.elastic.co/u/Ashish_Nigam_3)\
**Post date:** [October 23, 2013, 2:53pm UTC](https://discuss.elastic.co/t/multi-core-support-for-elasticsearch/14073/1 "2013-10-23T14:53:47Z")

</div>

I have been using 0.19.8 version for last 1+ year. For last two weeks, I  
have been running into lot of stability issues with the cluster -  
unassigned shards, CPU \> 100% etc. I am planning to migrate to latest ES  
version soon. But I have to support this version for few more weeks.

I noticed that ES java process is only using one core, even though ES node  
has 6 cores.  
Did 0.19.8 version process runs only one core?  
If not, how can I enable ES process to use multi-core?

Thanks  
Ashish

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [October 23, 2013, 3:23pm UTC](https://discuss.elastic.co/t/multi-core-support-for-elasticsearch/14073/2 "2013-10-23T15:23:29Z")

</div>

ES is by default using all available CPU cores. If you see Java consuming a  
single thread and goes up to 100% without going low again, you have an  
issue.

Which OS are you running and how much resources (CPU, Memory) have you  
allocated to ES?

Jörg

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Alexander\_Petrovsky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexander_petrovsky/32/832_2.png) [@Alexander\_Petrovsky](https://discuss.elastic.co/u/Alexander_Petrovsky)\
**Post date:** [March 13, 2015, 11:39am UTC](https://discuss.elastic.co/t/multi-core-support-for-elasticsearch/14073/3 "2015-03-13T11:39:26Z")

</div>

Hi!

I have the same problem on my singe elasticsearch instance.

# dpkg -l | grep elas

ii elasticsearch 1.4.2 all  
Open Source, Distributed, RESTful Search Engine

# uname -a

Linux [s2322.serverel.net](http://s2322.serverel.net) 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u2 x86\_64  
GNU/Linux

# top

Tasks: 98 total, 2 running, 96 sleeping, 0 stopped, 0 zombie  
%Cpu(s): 19.2 us, 5.8 sy, 0.9 ni, 74.0 id, 0.1 wa, 0.0 hi, 0.0 si,  
0.0 st  
KiB Mem: 8178012 total, 6844332 used, 1333680 free, 190952 buffers  
KiB Swap: 8000508 total, 0 used, 8000508 free, 5040912 cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

23694 elastics 20 0 23740 3872 1080 R 100.2 0.0 517:24.56 core

50459 logstash 39 19 1019m 238m 15m S 3.7 3.0 1:36.33 java

htop show me only one core consumption.

Can you help me?

среда, 23 октября 2013 г., 15:53:47 UTC+1 пользователь Ashish Nigam написал:

> I have been using 0.19.8 version for last 1+ year. For last two weeks, I  
> have been running into lot of stability issues with the cluster -  
> unassigned shards, CPU \> 100% etc. I am planning to migrate to latest ES  
> version soon. But I have to support this version for few more weeks.
> 
> I noticed that ES java process is only using one core, even though ES node  
> has 6 cores.  
> Did 0.19.8 version process runs only one core?  
> If not, how can I enable ES process to use multi-core?
> 
> Thanks  
> Ashish

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/02254b17-69c0-4c09-82c6-48c06919cf78%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/02254b17-69c0-4c09-82c6-48c06919cf78%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Alexander\_Petrovsky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexander_petrovsky/32/832_2.png) [@Alexander\_Petrovsky](https://discuss.elastic.co/u/Alexander_Petrovsky)\
**Post date:** [March 13, 2015, 11:40am UTC](https://discuss.elastic.co/t/multi-core-support-for-elasticsearch/14073/4 "2015-03-13T11:40:30Z")

</div>

Hi!

I have the same problem on my singe elasticsearch instance.

# dpkg -l | grep elas

ii elasticsearch 1.4.2 all  
Open Source, Distributed, RESTful Search Engine

# uname -a

Linux .... 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u2 x86\_64 GNU/Linux

# top

Tasks: 98 total, 2 running, 96 sleeping, 0 stopped, 0 zombie  
%Cpu(s): 19.2 us, 5.8 sy, 0.9 ni, 74.0 id, 0.1 wa, 0.0 hi, 0.0 si,  
0.0 st  
KiB Mem: 8178012 total, 6844332 used, 1333680 free, 190952 buffers  
KiB Swap: 8000508 total, 0 used, 8000508 free, 5040912 cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

23694 elastics 20 0 23740 3872 1080 R 100.2 0.0 517:24.56 core

50459 logstash 39 19 1019m 238m 15m S 3.7 3.0 1:36.33 java

htop show me only one core consumption.

Can you help me?

среда, 23 октября 2013 г., 15:53:47 UTC+1 пользователь Ashish Nigam написал:

> I have been using 0.19.8 version for last 1+ year. For last two weeks, I  
> have been running into lot of stability issues with the cluster -  
> unassigned shards, CPU \> 100% etc. I am planning to migrate to latest ES  
> version soon. But I have to support this version for few more weeks.
> 
> I noticed that ES java process is only using one core, even though ES node  
> has 6 cores.  
> Did 0.19.8 version process runs only one core?  
> If not, how can I enable ES process to use multi-core?
> 
> Thanks  
> Ashish

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/51a2808e-44bb-4740-9c72-c63eb15c06d5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/51a2808e-44bb-4740-9c72-c63eb15c06d5%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [March 13, 2015, 1:11pm UTC](https://discuss.elastic.co/t/multi-core-support-for-elasticsearch/14073/5 "2015-03-13T13:11:08Z")

</div>

How do you observe there is "only one core"?

Elastisearch uses many threads by default and as many cores as possible.

Jörg

On Fri, Mar 13, 2015 at 12:40 PM, Alexander Petrovsky [askjuise@gmail.com](mailto:askjuise@gmail.com)  
wrote:

> Hi!
> 
> I have the same problem on my singe elasticsearch instance.
> 
> # dpkg -l | grep elas
> 
> ii elasticsearch 1.4.2 all  
> Open Source, Distributed, RESTful Search Engine
> 
> # uname -a
> 
> Linux .... 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u2 x86\_64 GNU/Linux
> 
> # top
> 
> Tasks: 98 total, 2 running, 96 sleeping, 0 stopped, 0 zombie  
> %Cpu(s): 19.2 us, 5.8 sy, 0.9 ni, 74.0 id, 0.1 wa, 0.0 hi, 0.0 si,  
> 0.0 st  
> KiB Mem: 8178012 total, 6844332 used, 1333680 free, 190952 buffers  
> KiB Swap: 8000508 total, 0 used, 8000508 free, 5040912 cached
> 
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 
> 23694 elastics 20 0 23740 3872 1080 R 100.2 0.0 517:24.56 core
> 
> 50459 logstash 39 19 1019m 238m 15m S 3.7 3.0 1:36.33 java
> 
> htop show me only one core consumption.
> 
> Can you help me?
> 
> среда, 23 октября 2013 г., 15:53:47 UTC+1 пользователь Ashish Nigam  
> написал:
> 
> > I have been using 0.19.8 version for last 1+ year. For last two weeks, I  
> > have been running into lot of stability issues with the cluster -  
> > unassigned shards, CPU \> 100% etc. I am planning to migrate to latest ES  
> > version soon. But I have to support this version for few more weeks.
> > 
> > I noticed that ES java process is only using one core, even though ES  
> > node has 6 cores.  
> > Did 0.19.8 version process runs only one core?  
> > If not, how can I enable ES process to use multi-core?
> > 
> > Thanks  
> > Ashish
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/51a2808e-44bb-4740-9c72-c63eb15c06d5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/51a2808e-44bb-4740-9c72-c63eb15c06d5%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/51a2808e-44bb-4740-9c72-c63eb15c06d5%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/51a2808e-44bb-4740-9c72-c63eb15c06d5%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHW%2BWoe6SMHXyDk%2BZvURk0xCpakOGHBrEPp3\_bTHFLLAQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHW%2BWoe6SMHXyDk%2BZvURk0xCpakOGHBrEPp3_bTHFLLAQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Aaron\_Mefford](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@Aaron\_Mefford](https://discuss.elastic.co/u/Aaron_Mefford)\
**Post date:** [March 13, 2015, 5:48pm UTC](https://discuss.elastic.co/t/multi-core-support-for-elasticsearch/14073/6 "2015-03-13T17:48:31Z")

</div>

I saw this kind of behavior with some older versions of Java, but I mean  
old, not something I would expect to run ES, but then again your on an old  
build of ES so I thought I would mention it.

> >

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0d7720ea-9c00-4360-92a2-2a169a2b6497%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0d7720ea-9c00-4360-92a2-2a169a2b6497%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:26am UTC](https://discuss.elastic.co/t/multi-core-support-for-elasticsearch/14073/7 "2017-07-06T00:26:55Z")

</div>


