# EC2 CPU Performance

**URL:** <https://community.wowza.com/t/ec2-cpu-performance/93676>\
**Category:** Wowza Streaming Engine\
**Created:** [August 10, 2021, 6:27am UTC](https://community.wowza.com/t/ec2-cpu-performance/93676 "2021-08-10T06:27:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricky\_D\_Amelio](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@Ricky\_D\_Amelio](https://community.wowza.com/u/Ricky_D_Amelio)\
**Post date:** [August 10, 2021, 6:27am UTC](https://community.wowza.com/t/ec2-cpu-performance/93676/1 "2021-08-10T06:27:37Z")

</div>

We run an m3.large instance on EC2, and are seeing varying performance metrics. In EC2/CloudWatch, average CPU hovers around 23%. In the Wowza Streaming Engine portal, the CPU usage hovers around 100%. See screenshots.

Adding more streams causes those streams to cut in and out intermittently. It seems that the application is at peak load, despite what EC2 says is available. (I acknowledge that RAM may be a factor, too). My theory so far is that the application is only using one of the available threads/cores on the instance.

How am I able to verify, and ultimately, change this?

 ![Screen Shot 2021-08-10 at 16.27.07](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/8fa5a3b64e277340375edb4928417bedfb77c2a4.png)

---

<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:** [August 12, 2021, 5:11pm UTC](https://community.wowza.com/t/ec2-cpu-performance/93676/2 "2021-08-12T17:11:02Z")

</div>

My apologies for the delay. The engineer I spoke with said you can give this a try:

WSEM → Server → Performance Tuning

 ![Screen Shot 2021-08-10 at 11.48.47 AM](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/15c7590121438848f4ed3874a0e2b3f87929d654.png)

---

<div class="post-metadata">

**Author:** ![Ricky\_D\_Amelio](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@Ricky\_D\_Amelio](https://community.wowza.com/u/Ricky_D_Amelio)\
**Post date:** [August 13, 2021, 12:49am UTC](https://community.wowza.com/t/ec2-cpu-performance/93676/3 "2021-08-13T00:49:42Z")

</div>

Thanks for the response. I did look there, and saw that it was reporting 2 cores. This doesn’t really explain the big discrepancy between the two methods of reporting CPU usage though.

 ![Screen Shot 2021-08-13 at 10.11.40](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/310422560cc6d80dad9d4de4fa0fc4833cd7341a.png)

---

<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:** [August 13, 2021, 6:37pm UTC](https://community.wowza.com/t/ec2-cpu-performance/93676/4 "2021-08-13T18:37:22Z")

</div>

I understand. I once unknowingly had a hidden application burning up so much of my CPU, my Engine kept crashing and I was frustrated as well. Did you already tune the server and your java for optimal performance? Did you do a Heap dump to clear some memory? These things can be tricky to diagnose in forums without full access to your files to test as you know.

Engineers suggest looking at this and if still an issue they need a ticket to see what is going on.

**Ignore the title of the article @Ricky_D_Amelio and I know your server is not crashing, but it’s the same set of instructions to do all the things the engineers suggested from above.**

  

> **[Why is My Engine Server Crashing?](https://support.wowza.com/hc/en-us/articles/1260803160709-Why-is-My-Engine-Server-Crashing-)**
>
> The Performance Tuning page shows the server's OS architecture, amount of memory available to the Wowza Streaming Engine, the number of core processors on the system, and the Java version and architecture (bitness) in use.

Did you send a ticket yet? They would like to further investigate and test.

---

<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:** [August 13, 2021, 6:39pm UTC](https://community.wowza.com/t/ec2-cpu-performance/93676/5 "2021-08-13T18:39:07Z")

</div>

I agree it’s very odd with the two different reporting scenarios. Engineers are curious to have you share in your ticket how you were able to replicate that and what the full workflow was. Thanks.

> **[Open a Support Ticket](https://www.wowza.com/support/open-ticket)**
>
> Open a Wowza suppor ticket so our technical support engineers worldwide can help you succeed with your Wowza software and services.
