# Mender demo server sudden slow and stuck

**URL:** https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043
**Category:** General Discussions
**Created:** [June 15, 2020, 6:36am UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043 "2020-06-15T06:36:44Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 15, 2020, 6:36am UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/1 "2020-06-15T06:36:44Z")

</div>

Hi,

I have been using Mender for couple of weeks now, suddenly Mender server GUI is stuck and slow, its staggering. No errors in the logs. Could you let me know how to resolve this.

Im running the server in a 2 cpus, 8GB RAM. So server requirements also good rgt? or is it less?

---

<div class="post-metadata">

### Author: ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)
#### Post date: [June 15, 2020, 11:42am UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/2 "2020-06-15T11:42:14Z")

</div>

What does `docker stats` give you on the containers?

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 15, 2020, 12:09pm UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/3 "2020-06-15T12:09:21Z")

</div>

Hi

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/32a5c9919b9b1d0096859986f2aaa500e9326bec.png)

Looks fine with here,

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 15, 2020, 12:11pm UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/4 "2020-06-15T12:11:01Z")

</div>

But the Server has gone extremly slow, Gui, if i click anything, it isn’t smooth anymore. DOnt knw what hapnd suddenly.

---

<div class="post-metadata">

### Author: ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)
#### Post date: [June 15, 2020, 12:21pm UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/5 "2020-06-15T12:21:10Z")

</div>

and `free` ?

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 15, 2020, 12:33pm UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/6 "2020-06-15T12:33:44Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/a740bca1c2000a89f36f6d19e6641fad51a19a43.png)

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 15, 2020, 12:34pm UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/7 "2020-06-15T12:34:21Z")

</div>

Its a 4 CPU and 16 GB RAM server.

---

<div class="post-metadata">

### Author: ![mzedel](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mzedel/32/261_2.png) [@mzedel](https://hub.mender.io/u/mzedel)
#### Post date: [June 15, 2020, 12:55pm UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/8 "2020-06-15T12:55:02Z")

</div>

Can you open the developer tools in your browser and check in the network tab if there are any requests that get sent excessively?  
Apart from that: how many devices are you serving in the environment and how are their update intervals configured?

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 15, 2020, 3:34pm UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/9 "2020-06-15T15:34:49Z")

</div>

Hi @mzedel,

I checked the network tab, It fine I guess, no excessive requests made, It makes request as per we view the tab. and I run only three devices and five releases. Its a demo server. It started behaving like this since yesterday. in the device tab, it is sending 8 requests every 3 seconds, maybe thats default for refreshing the device tab.

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 15, 2020, 3:44pm UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/10 "2020-06-15T15:44:52Z")

</div>

Hi @oleorhagen and @mzedel

The only thing which I found off was this logs of elastic search docker, but I couldn’t get to a conclusion to what I should infer from this log:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/1d2b7ef270ca1796fec8701c6ceae35004a1a4b1.png)

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 16, 2020, 9:39am UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/11 "2020-06-16T09:39:42Z")

</div>

Hi @mzedel , Do you know what has happened? Cuz Im not able to figure out the reason? Is this becuase of the demo server?

---

<div class="post-metadata">

### Author: ![mzedel](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mzedel/32/261_2.png) [@mzedel](https://hub.mender.io/u/mzedel)
#### Post date: [June 16, 2020, 10:55am UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/12 "2020-06-16T10:55:24Z")

</div>

based on this information alone I’m not sure what to focus on unfortunately… maybe we can track it down 🙂

- does it slow down on all UI pages? specifically releases, settings & help pages should be independent from most updating related actions
- the 8 requests every 3 seconds for three devices seem too much - details on these requests might help (maybe you can copy some of the response bodies and send them across)
- some info on the device intervals… 3 demo devices with demo intervals should not cause problems at all…

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 16, 2020, 11:07am UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/13 "2020-06-16T11:07:06Z")

</div>

Hi @mzedel, Yes it slows down the entire UI, every tab, releases, devices. But settings and help is fine, maybe its cuz is independent,

I can attach the request sent when I click device tab, (with three devices)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/45a0858b70da1bb6aefac54ff03b2310feaa9c04.png)

---

<div class="post-metadata">

### Author: ![mzedel](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mzedel/32/261_2.png) [@mzedel](https://hub.mender.io/u/mzedel)
#### Post date: [June 16, 2020, 12:00pm UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/14 "2020-06-16T12:00:49Z")

</div>

this looks quite normal, so apart from the other info can you get me the response body from the following calls:

- `count?status=accepted`
- `devices?status=accepted&per_page=20&page=1`

it might be possible that these two calls return different values - even though I can’t see any reason why this would happen on the device groups tab, let alone any of the other areas…

and for context: what browser version are you on + what Mender version are you running?

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 17, 2020, 10:33am UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/15 "2020-06-17T10:33:05Z")

</div>

Hi @mzedel,

The mender version is 2.3.0 and Chrome browser is Version 83.0.4103.97.

response of count?status=accepted is  
{“count”:3}

response of \* `devices?status=accepted&per_page=20&page=1` is:  
[{“id”:“17a0c1dc-a425-4e79-bb51-87a068edba63”,“identity\_data”:{“mac”:“3e:3e:44:dd:33:4a”},“status”:“accepted”,“decommissioning”:false,“created\_ts”:“2020-06-10T11:51:36.896Z”,“updated\_ts”:“2020-06-10T15:21:10.221Z”,“auth\_sets”:[{“id”:“56c1101e-b5f1-424b-9ef7-99c5fcf3e3df”,“identity\_data”:{“mac”:“3e:3e:44:dd:33:4a”},“pubkey”:"-----“ts”:“2020-06-10T11:51:36.904Z”,“status”:“accepted”}]}

and you gotto see this, I just went to Device tab and around 1000 request in couple of mins, simply getting accumulated, why?  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/1bae021d28ebfed95d26df7b7cd5304dd8f97293.png)

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 17, 2020, 11:21am UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/16 "2020-06-17T11:21:15Z")

</div>

Hi @mzedel,

Im facing another issue, One of my deployment is failed and current software I can see “Inconsistent”, after this Mender deployment isnt happening, deploy is stuck in ‘pending’.

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 19, 2020, 3:42am UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/17 "2020-06-19T03:42:33Z")

</div>

@mzedel Do you knw why this is happenining?

---

<div class="post-metadata">

### Author: ![mzedel](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mzedel/32/261_2.png) [@mzedel](https://hub.mender.io/u/mzedel)
#### Post date: [June 19, 2020, 1:33pm UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/18 "2020-06-19T13:33:17Z")

</div>

The number of requests seems to be a reason for the slow down - this number of requests for this device count should maybe be achieved after an hour, not at all within minutes.  
I can only imagine this is due to faulty authentication data on the devices - even though I don’t really know why this would be the case. But to say anything more specific I would need at least the _full_ body for the requests, better yet the entire response. And the device intervals from the 3 devices.

Another potential slow down: if you have 3 virtual demo devices (the qemu client) this will slow down your system considerably.

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 19, 2020, 5:03pm UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/19 "2020-06-19T17:03:38Z")

</div>

Yes, It is indeed strange to me too @mzedel considering the fact Mender is realible.

Yes, the request are happening in few minutes, not hour. Im going to setup a new server of Demo version and see if its behaving this way again.

---

<div class="post-metadata">

### Author: ![nishad1092](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nishad1092](https://hub.mender.io/u/nishad1092)
#### Post date: [June 22, 2020, 3:52am UTC](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043/20 "2020-06-22T03:52:53Z")

</div>

Hi @mzedel,  
I reinstalled the Mender server, Now its all good and smooth. But a major query I have.,

So one of my deployment is failed\aborted, and therefore I understand the release became “Inconsistent”, and So I created a new artifact, But after it shows ‘Incoinsistent’, The device doesnt sync nor I cant deploy any further updates, Unless I restart the device manually. This cant happen in real scenario rgt, I cant go and reboot devices in production if the release fails. How to resolve this? or Is this how Mender works.?

[Next page](https://hub.mender.io/t/mender-demo-server-sudden-slow-and-stuck/2043.md?page=2)
