# "forceDisconnectByServer" when more than 4 users in a call

**URL:** <https://openvidu.discourse.group/t/forcedisconnectbyserver-when-more-than-4-users-in-a-call/2826>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [March 16, 2021, 10:57am UTC](https://openvidu.discourse.group/t/forcedisconnectbyserver-when-more-than-4-users-in-a-call/2826 "2021-03-16T10:57:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsh\_wardhan](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/harsh_wardhan/32/116_2.png) [@Harsh\_wardhan](https://openvidu.discourse.group/u/Harsh_wardhan)\
**Post date:** [March 16, 2021, 10:57am UTC](https://openvidu.discourse.group/t/forcedisconnectbyserver-when-more-than-4-users-in-a-call/2826/1 "2021-03-16T10:57:10Z")

</div>

I am getting  
forceDisconnectByServer and ghost disconnections for my implementation of OV.e[36mopenvidu-

The max number of users I was able to get inside a single session was - 11 and at that point, I started to get these disconnections.

server\_1 |e[0m [INFO] 2021-03-16 15:08:53,629 [http-nio-0.0.0.0-5443-exec-3] io.openvidu.server.kurento.core.KurentoSessionManager - Request [LEAVE\_ROOM] for participant ipc\_IPCAM\_rtsp\_Y2LO\_10\_7\_24\_11\_554\_profile2 of session 5-1615887420306 with reason forceDisconnectByServer

**Extra info:**  
I am hosting all assets using multiple docker containers inside a single 16core instance.  
I am streaming my participant’s canvas to each other.  
And often use IP cam from time to time.

OV version is 2.16

---

<div class="post-metadata">

**Author:** ![Harsh\_wardhan](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/harsh_wardhan/32/116_2.png) [@Harsh\_wardhan](https://openvidu.discourse.group/u/Harsh_wardhan)\
**Post date:** [March 17, 2021, 1:36pm UTC](https://openvidu.discourse.group/t/forcedisconnectbyserver-when-more-than-4-users-in-a-call/2826/2 "2021-03-17T13:36:35Z")

</div>

@pabloFuente tagging you for visibility - this issue is in our production and would love to have your insights here.

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 18, 2021, 1:22pm UTC](https://openvidu.discourse.group/t/forcedisconnectbyserver-when-more-than-4-users-in-a-call/2826/3 "2021-03-18T13:22:39Z")

</div>

forceDisconnectByServer reason appears only when your backend application calls method DELETE Connection: [OpenVidu Docs](https://docs.openvidu.io/en/2.17.0/reference-docs/REST-API/#delete-openviduapisessionsltsession_idgtconnectionltconnection_idgt)

---

<div class="post-metadata">

**Author:** ![Harsh\_wardhan](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/harsh_wardhan/32/116_2.png) [@Harsh\_wardhan](https://openvidu.discourse.group/u/Harsh_wardhan)\
**Post date:** [March 18, 2021, 1:31pm UTC](https://openvidu.discourse.group/t/forcedisconnectbyserver-when-more-than-4-users-in-a-call/2826/4 "2021-03-18T13:31:36Z")

</div>

Okay then it might be that I am reading the logs wrong. But we are noticing high frequency of disconnections as pointed in the beginning. From your point of perspective where we should start investing and what could be the possible reasons behind it ?

As pointed out this is a 16 core server with only one session in it.

Do you think lack of cpu power on client side could be the issue ? (These are all modern tab and Android devices)

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 18, 2021, 1:43pm UTC](https://openvidu.discourse.group/t/forcedisconnectbyserver-when-more-than-4-users-in-a-call/2826/5 "2021-03-18T13:43:19Z")

</div>

How have you deployed OpenVidu? What does this exactly mean?

> I am hosting all assets using multiple docker containers inside a single 16core instance.

Did you deployed OpenVidu as stated in the documentation? : [OpenVidu Docs](https://docs.openvidu.io/en/2.17.0/deployment/)

---

<div class="post-metadata">

**Author:** ![Harsh\_wardhan](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/harsh_wardhan/32/116_2.png) [@Harsh\_wardhan](https://openvidu.discourse.group/u/Harsh_wardhan)\
**Post date:** [March 18, 2021, 1:50pm UTC](https://openvidu.discourse.group/t/forcedisconnectbyserver-when-more-than-4-users-in-a-call/2826/6 "2021-03-18T13:50:12Z")

</div>

Sorry for the confusion  
I meant was our application server and OV instance are running inside the same box. In their own docker instances.

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [March 18, 2021, 2:06pm UTC](https://openvidu.discourse.group/t/forcedisconnectbyserver-when-more-than-4-users-in-a-call/2826/7 "2021-03-18T14:06:18Z")

</div>

So this is your OpenVidu deployment: [OpenVidu Docs](https://docs.openvidu.io/en/2.17.0/deployment/deploying-on-premises/)

---

<div class="post-metadata">

**Author:** ![Harsh\_wardhan](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/harsh_wardhan/32/116_2.png) [@Harsh\_wardhan](https://openvidu.discourse.group/u/Harsh_wardhan)\
**Post date:** [March 18, 2021, 2:13pm UTC](https://openvidu.discourse.group/t/forcedisconnectbyserver-when-more-than-4-users-in-a-call/2826/8 "2021-03-18T14:13:24Z")

</div>

yes but for OV 2.14  
[https://docs.openvidu.io/en/2.14.0/deployment/deploying-on-premises/](https://docs.openvidu.io/en/2.14.0/deployment/deploying-on-premises/)
