# Almost 90-100% CPU usage while doing nothing

**URL:** <https://discuss.elastic.co/t/almost-90-100-cpu-usage-while-doing-nothing/12259>\
**Category:** Elasticsearch\
**Created:** [June 4, 2013, 4:14pm UTC](https://discuss.elastic.co/t/almost-90-100-cpu-usage-while-doing-nothing/12259 "2013-06-04T16:14:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadyabhi](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@shadyabhi](https://discuss.elastic.co/u/shadyabhi)\
**Post date:** [June 4, 2013, 4:14pm UTC](https://discuss.elastic.co/t/almost-90-100-cpu-usage-while-doing-nothing/12259/1 "2013-06-04T16:14:04Z")

</div>

Hi all,

I came across a issue today in a 2 node cluster where both nodes were  
occupying around 100% CPU usage for no reason. No indexing is happening and  
no search queries are being executed.

Hot threads output also says the same way. [http://pb.abhijeetr.com/TbZi](http://pb.abhijeetr.com/TbZi)

Stracing the ES process gives: (futex call)

$sudo strace -p 3003  
Process 3003 attached - interrupt to quit  
futex(0x7f3696d879d0, FUTEX\_WAIT, 3005, NULL

^C \<unfinished ...\>  
Process 3003 detached

When I used "perf top" to identify, I see libjvm.so occupying 90% CPU  
usage. I'm using elasticsearch-0.90.0-1.noarch version. Any idea what might  
be happening?

--  
Regards,  
Abhijeet Rastogi (shadyabhi)

> **[Abhijeet's Blog](https://blog.abhijeetr.com/)**
>
> I write about problems that I solve

--  
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:** ![mattweber](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattweber/32/44940_2.png) [@mattweber](https://discuss.elastic.co/u/mattweber)\
**Post date:** [June 4, 2013, 4:19pm UTC](https://discuss.elastic.co/t/almost-90-100-cpu-usage-while-doing-nothing/12259/2 "2013-06-04T16:19:03Z")

</div>

What version of Java? If you are using OpenJDK, switch to the official  
Oracle Java 7 as there are all sorts of issues with OpenJDK.

Thanks,  
Matt Weber

On Tue, Jun 4, 2013 at 9:14 AM, Abhijeet Rastogi [abhijeet.1989@gmail.com](mailto:abhijeet.1989@gmail.com)wrote:

> Hi all,
> 
> I came across a issue today in a 2 node cluster where both nodes were  
> occupying around 100% CPU usage for no reason. No indexing is happening and  
> no search queries are being executed.
> 
> Hot threads output also says the same way. [http://pb.abhijeetr.com/TbZi](http://pb.abhijeetr.com/TbZi)
> 
> Stracing the ES process gives: (futex call)
> 
> $sudo strace -p 3003  
> Process 3003 attached - interrupt to quit  
> futex(0x7f3696d879d0, FUTEX\_WAIT, 3005, NULL
> 
> ^C \<unfinished ...\>  
> Process 3003 detached
> 
> When I used "perf top" to identify, I see libjvm.so occupying 90% CPU  
> usage. I'm using elasticsearch-0.90.0-1.noarch version. Any idea what might  
> be happening?
> 
> --  
> Regards,  
> Abhijeet Rastogi (shadyabhi)  
> [http://blog.abhijeetr.com](http://blog.abhijeetr.com)
> 
> --  
> 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).

--  
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:** ![shadyabhi](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@shadyabhi](https://discuss.elastic.co/u/shadyabhi)\
**Post date:** [June 4, 2013, 4:31pm UTC](https://discuss.elastic.co/t/almost-90-100-cpu-usage-while-doing-nothing/12259/3 "2013-06-04T16:31:24Z")

</div>

Hi Matt,

Thanks for your reply. Sorry, I forgot to mention the java version. And  
yes, I'm using java-1.7.0-openjdk-1.7.0.19-2.3.9.1.el6\_4.x86\_64.

I'll move to oracle Java 7 now but I'm not sure if that's the problem  
because this thing happens only rarely. (Last time it happened a month  
ago). Any other thing that might be going wrong here or a known bug or  
something?

On Tue, Jun 4, 2013 at 9:49 PM, Matt Weber [matt.weber@gmail.com](mailto:matt.weber@gmail.com) wrote:

> What version of Java? If you are using OpenJDK, switch to the official  
> Oracle Java 7 as there are all sorts of issues with OpenJDK.
> 
> Thanks,  
> Matt Weber
> 
> On Tue, Jun 4, 2013 at 9:14 AM, Abhijeet Rastogi [abhijeet.1989@gmail.com](mailto:abhijeet.1989@gmail.com)wrote:
> 
> > Hi all,
> > 
> > I came across a issue today in a 2 node cluster where both nodes were  
> > occupying around 100% CPU usage for no reason. No indexing is happening and  
> > no search queries are being executed.
> > 
> > Hot threads output also says the same way. [http://pb.abhijeetr.com/TbZi](http://pb.abhijeetr.com/TbZi)
> > 
> > Stracing the ES process gives: (futex call)
> > 
> > $sudo strace -p 3003  
> > Process 3003 attached - interrupt to quit  
> > futex(0x7f3696d879d0, FUTEX\_WAIT, 3005, NULL
> > 
> > ^C \<unfinished ...\>  
> > Process 3003 detached
> > 
> > When I used "perf top" to identify, I see libjvm.so occupying 90% CPU  
> > usage. I'm using elasticsearch-0.90.0-1.noarch version. Any idea what might  
> > be happening?
> > 
> > --  
> > Regards,  
> > Abhijeet Rastogi (shadyabhi)  
> > [http://blog.abhijeetr.com](http://blog.abhijeetr.com)
> > 
> > --  
> > 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).
> 
> --  
> 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).

--  
Regards,  
Abhijeet Rastogi (shadyabhi)  
[http://blog.abhijeetr.com](http://blog.abhijeetr.com)

--  
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:** ![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, 2:33am UTC](https://discuss.elastic.co/t/almost-90-100-cpu-usage-while-doing-nothing/12259/4 "2017-07-06T02:33:03Z")

</div>


