# CPU Usage too high with SSL

**URL:** https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195
**Category:** Wowza Streaming Engine
**Created:** [July 15, 2017, 6:22pm UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195 "2017-07-15T18:22:45Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Janez\_Makovsek1](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@Janez\_Makovsek1](https://community.wowza.com/u/Janez_Makovsek1)
#### Post date: [July 15, 2017, 6:22pm UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195/1 "2017-07-15T18:22:45Z")

</div>

Hi,

If we switch Apache on our Website to redirect all HTTP requests to HTTPS, example:

[http://web.com](http://web.com) goes to [https://www.web.com](https://www.web.com)

Then Wowza CPU usage explodes to about 10x of what it was before and the server streaming stops. We verified that it is in fact Wowza executable that starts to use so much CPU and that CPU load is proportional to connection count.

However, I cant imagine the type of relationship which causes Wowza server (which runs on separate IP) to depend upon the Http or Https of the Website which is serving the player.

If anybody wants to embedd our player (iframe) and if they then switch their website to HTTPS this would cause Wowza server complete CPU meltdown.

What could be causing this? We have CORS enabled and use Flowplayer with Apple HLS. The player has https defined for Wowza video source. Example:

[https://stream.web.com:1935/live/OurStream/playlist.m3u8](https://stream.web.com:1935/live/OurStream/playlist.m3u8)

Everything works fine, if there are only 10-20 connections, but with increasing count the extra CPU overhead per connection becomes more obvious and at about 250 connections reaches 12 CPU cores at 100%.

Is there some way to debug which subsystem in Wowza is using CPU? Any idea how to determine the cause?

Thanks!  
Atmapuri

---

<div class="post-metadata">

### Author: ![Jermaine\_Hemby](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jermaine\_Hemby](https://community.wowza.com/u/Jermaine_Hemby)
#### Post date: [July 16, 2017, 4:19pm UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195/2 "2017-07-16T16:19:25Z")

</div>

Hello,

Thanks for contacting the Wowza Community!

Can you confirm when setting up your server to delivery traffic over SSL you followed one of these articles?

[Security](https://www.wowza.com/docs/media-security-overview)

Hope this helps. If any further questions, feel free to contact us.

regards

Jermaine

---

<div class="post-metadata">

### Author: ![Janez\_Makovsek1](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@Janez\_Makovsek1](https://community.wowza.com/u/Janez_Makovsek1)
#### Post date: [July 16, 2017, 7:16pm UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195/3 "2017-07-16T19:16:57Z")

</div>

Hi,

> Can you confirm when setting up your server to delivery traffic over SSL you followed one of these \>articles?

Yes.

> Hope this helps.

No.

> If any further questions, feel free to contact us.

Yes, please.

Thanks!  
Atmapuri

---

<div class="post-metadata">

### Author: ![Nadia\_Romani](https://avatars.discourse-cdn.com/v4/letter/n/6f9a4e/32.png) [@Nadia\_Romani](https://community.wowza.com/u/Nadia_Romani)
#### Post date: [September 12, 2017, 8:47am UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195/4 "2017-09-12T08:47:53Z")

</div>

Hi, I have the same issue.

We have 2 servers serving a HLS live stream.

The cpu usage was always under 20% since we changed the stream url on the web players.

Now the web players are using https url, same number of users connected, but the cpu usage is now at 100%.

Is it “normal” this high cpu usage or there is something that can be optimised?

I already tuned the server using the Wowza guide.

Thanks for your help

Nadia

---

<div class="post-metadata">

### Author: ![Kristian\_Borgen](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@Kristian\_Borgen](https://community.wowza.com/u/Kristian_Borgen)
#### Post date: [November 12, 2018, 8:02am UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195/5 "2018-11-12T08:02:53Z")

</div>

Any answer to this ?

---

<div class="post-metadata">

### Author: ![Janez\_Makovsek1](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@Janez\_Makovsek1](https://community.wowza.com/u/Janez_Makovsek1)
#### Post date: [November 12, 2018, 8:31am UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195/6 "2018-11-12T08:31:26Z")

</div>

Yes. This:

[https://www.wowza.com/docs/how-to-improve-ssl-performance-with-java-8](https://www.wowza.com/docs/how-to-improve-ssl-performance-with-java-8)

---

<div class="post-metadata">

### Author: ![Kristian\_Borgen](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@Kristian\_Borgen](https://community.wowza.com/u/Kristian_Borgen)
#### Post date: [November 12, 2018, 2:04pm UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195/7 "2018-11-12T14:04:33Z")

</div>

We have this config running, but still see a CPU usage that is much higher than prior to enabling streamlock.

We now have 58 live viewers on a single Intel E5-2680 v4 2.4 GHZ. Running now at about 40-50% CPU, after a couple of hours into our live stream. Because it starts pretty low, about 10% (Normal - transcode)

Running latest Wowza verison.

---

<div class="post-metadata">

### Author: ![Janez\_Makovsek1](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@Janez\_Makovsek1](https://community.wowza.com/u/Janez_Makovsek1)
#### Post date: [November 12, 2018, 2:10pm UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195/8 "2018-11-12T14:10:08Z")

</div>

We had similar problem. CPU usage on our machine grows from 30% with 50 viewers to 50% with 550 viewers. This Java settings however we had to do twice, because the first time, we actually changed the help comment line rather than actual config.

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [November 12, 2018, 6:40pm UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195/9 "2018-11-12T18:40:06Z")

</div>

Thanks for sharing this @Janez Makovsek

---

<div class="post-metadata">

### Author: ![Kristian\_Borgen](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@Kristian\_Borgen](https://community.wowza.com/u/Kristian_Borgen)
#### Post date: [November 13, 2018, 9:02am UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195/10 "2018-11-13T09:02:57Z")

</div>

Copy of my log, starting up Wowza:

CET comment server INFO 200 - Java Args[4]: -Djava.security.properties=C:/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine 4.7.1/conf/java.security

file content:  
jdk.tls.disabledAlgorithms=GCM

We still see that the CPU grows, even if the viewer count is stable throughout the whole live event.

---

<div class="post-metadata">

### Author: ![Janez\_Makovsek1](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@Janez\_Makovsek1](https://community.wowza.com/u/Janez_Makovsek1)
#### Post date: [November 13, 2018, 9:10am UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195/11 "2018-11-13T09:10:25Z")

</div>

When the problem is the jdk GCM, then the excessive CPU usage is strictly proportional to the viewer count. If you have stable viewer count, but CPU usage continues to grow, then this does not appear to be related to the SSL part of the Wowza. I would check other parts, which may depend on stream duration. Memory usage, DVR config, Web server config…

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [November 13, 2018, 3:29pm UTC](https://community.wowza.com/t/cpu-usage-too-high-with-ssl/49195/12 "2018-11-13T15:29:32Z")

</div>

Please feel free to submit a support ticket @Kristian Borgen so we can run some tests once you follow the steps in the accepted answer for this post. We are happy to help you pinpoint the reason.

[https://www.wowza.com/support/open-ticket](https://www.wowza.com/support/open-ticket)
