# What happens when server overloaded?

**URL:** <https://community.wowza.com/t/what-happens-when-server-overloaded/383>\
**Category:** Wowza Streaming Engine\
**Created:** [May 15, 2009, 7:40pm UTC](https://community.wowza.com/t/what-happens-when-server-overloaded/383 "2009-05-15T19:40:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [May 15, 2009, 7:40pm UTC](https://community.wowza.com/t/what-happens-when-server-overloaded/383/1 "2009-05-15T19:40:40Z")

</div>

Hi I’ve heard from you guys that the maximum capacity of a small instance is around 150mbps. What happens if there are too may requests on a server?

ex if the server is serving 150mbps of video and then all of a sudden there’s an extra 100 requests for another 50mbps?

Would the servers:

1. Reject the incoming connections (ruining it for the new people), preserving the bandwidth/quality of the existing connections?

or

1. Allow them in but then reduce the streaming bandwidth for ALL connections and thus ruining the experience for all users?

or something else???

Thanks!!

Ryan

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [May 15, 2009, 11:50am UTC](https://community.wowza.com/t/what-happens-when-server-overloaded/383/2 "2009-05-15T11:50:04Z")

</div>

It will do #2. It will only ruin it for others if there truely is not enough bandwidth to handle the extra load. You can certainly have it do the first option by limiting the number of connections to the server. This can be done by setting a hard connection limit in /usr/local/WowzaMediaServerPro/conf/VHosts.xml.

I do like the wording of this post.

Charlie

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 18, 2010, 1:06pm UTC](https://community.wowza.com/t/what-happens-when-server-overloaded/383/3 "2010-05-18T13:06:25Z")

</div>

You will get “NetConnection.Connect.Rejected” notification and message “(Connection failed: Over license connection limit.)”

Then you will get “NetConnection.Connect.Closed”

You can see it in the NetConnection NetStatusEvent handler.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 18, 2010, 2:05pm UTC](https://community.wowza.com/t/what-happens-when-server-overloaded/383/4 "2010-05-18T14:05:01Z")

</div>

Do you want to change what the server sends or what the client displays?

If you just want to change what the client displays you can look for that notification in the NetConnection NetStatusEvent handler, and display whatever you want.

Server-side, you can send your own notifications in the onConnect handler:

```auto
sendClientOnStatusError(client, "NetConnection.Connect.MyReject", "Custom Reject");

```

Richard

---

<div class="post-metadata">

**Author:** ![Mario\_Rizzo](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Mario\_Rizzo](https://community.wowza.com/u/Mario_Rizzo)\
**Post date:** [May 18, 2010, 1:53pm UTC](https://community.wowza.com/t/what-happens-when-server-overloaded/383/5 "2010-05-18T13:53:11Z")

</div>

Hi,

Which is the server message response to the client when the server catch up the limit set on VHosts.xml

Could you please help me?

Thanks

---

<div class="post-metadata">

**Author:** ![Mario\_Rizzo](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Mario\_Rizzo](https://community.wowza.com/u/Mario_Rizzo)\
**Post date:** [May 18, 2010, 2:30pm UTC](https://community.wowza.com/t/what-happens-when-server-overloaded/383/6 "2010-05-18T14:30:01Z")

</div>

Hi,

thanks in advance for you answer

Can I customize this message?

Thanks

---

<div class="post-metadata">

**Author:** ![Mario\_Rizzo](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Mario\_Rizzo](https://community.wowza.com/u/Mario_Rizzo)\
**Post date:** [May 18, 2010, 7:13pm UTC](https://community.wowza.com/t/what-happens-when-server-overloaded/383/7 "2010-05-18T19:13:41Z")

</div>

Thanks

I will try to develop it.
