# Elasticsearch process causes CPU soft lockup (causing the server to hung)

**URL:** <https://discuss.elastic.co/t/elasticsearch-process-causes-cpu-soft-lockup-causing-the-server-to-hung/132354>\
**Category:** Elasticsearch\
**Created:** [May 17, 2018, 2:26pm UTC](https://discuss.elastic.co/t/elasticsearch-process-causes-cpu-soft-lockup-causing-the-server-to-hung/132354 "2018-05-17T14:26:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![farin99](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farin99/32/27873_2.png) [@farin99](https://discuss.elastic.co/u/farin99)\
**Post date:** [May 17, 2018, 2:26pm UTC](https://discuss.elastic.co/t/elasticsearch-process-causes-cpu-soft-lockup-causing-the-server-to-hung/132354/1 "2018-05-17T14:26:59Z")

</div>

We experience hangs on multiple machines that are running elastic data node only.  
When it accrued you see a soft lockup symptom of a task or kernel thread using and not releasing a CPU for a longer period of time than allowed. You can see from the logs that it is from the java process (elastic is the only java process running on that machine)

`May 14 05:24:21 localhost kernel: [6006808.160001] watchdog: BUG: soft lockup - CPU#5 stuck for 23s! [java:5783]`

This has already occurred in 5 different machines

A full description is in [https://github.com/elastic/elasticsearch/issues/30667](https://github.com/elastic/elasticsearch/issues/30667)

Thanks!

---

<div class="post-metadata">

**Author:** ![farin99](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farin99/32/27873_2.png) [@farin99](https://discuss.elastic.co/u/farin99)\
**Post date:** [May 20, 2018, 9:25pm UTC](https://discuss.elastic.co/t/elasticsearch-process-causes-cpu-soft-lockup-causing-the-server-to-hung/132354/2 "2018-05-20T21:25:41Z")

</div>

hi @jasontedor, as you closed the issue on git, I was wondering if you could elaborate more here on why you are sure this isn't an issue in elastic?  
The reason I'm asking is that we are currently in an ongoing investigation with Azure which already opened a ticket to canonical about this issue. When Azure discuss this issue with canonical they were insisting that the issue is with the java process (in this case elastic) that is not releasing the CPU.  
If you could provide us any information or guide us to find proof that the issue is not an elastic issue it will help expedite the process of finding the root cause.

Thanks for your help!  
Yoni.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [May 21, 2018, 2:02am UTC](https://discuss.elastic.co/t/elasticsearch-process-causes-cpu-soft-lockup-causing-the-server-to-hung/132354/3 "2018-05-21T02:02:25Z")

</div>

Please read through the [thread](https://gitlab.com/gitlab-com/infrastructure/issues/3967) that I linked to from GitHub. It looks identical to the problem that you're experiencing, is on the same kernel, and references several LKML threads on similar issues. This screams kernel issue, not Java issue to me, and is almost surely not an Elasticsearch issue. I am open and willing to be proven wrong, but it will require evidence.

---

<div class="post-metadata">

**Author:** ![farin99](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/farin99/32/27873_2.png) [@farin99](https://discuss.elastic.co/u/farin99)\
**Post date:** [May 21, 2018, 8:52am UTC](https://discuss.elastic.co/t/elasticsearch-process-causes-cpu-soft-lockup-causing-the-server-to-hung/132354/4 "2018-05-21T08:52:09Z")

</div>

@jasontedor thanks for the quick response. It appears you are right and it is a kernel issue on Azure which should be fixed in the next kernel update.  
FYI, in case you have other customers who are having the same behavior.  
[https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1772264](https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1772264)

---

<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:** [June 18, 2018, 8:52am UTC](https://discuss.elastic.co/t/elasticsearch-process-causes-cpu-soft-lockup-causing-the-server-to-hung/132354/5 "2018-06-18T08:52:15Z")

</div>

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