# Tools / Techniques to debug High CPU Usage on Wowza servers

**URL:** <https://community.wowza.com/t/tools-techniques-to-debug-high-cpu-usage-on-wowza-servers/54412>\
**Category:** Wowza Developer Dojo\
**Tags:** java\
**Created:** [January 7, 2020, 4:50pm UTC](https://community.wowza.com/t/tools-techniques-to-debug-high-cpu-usage-on-wowza-servers/54412 "2020-01-07T16:50:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashok\_Adhikari](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@Ashok\_Adhikari](https://community.wowza.com/u/Ashok_Adhikari)\
**Post date:** [January 7, 2020, 4:50pm UTC](https://community.wowza.com/t/tools-techniques-to-debug-high-cpu-usage-on-wowza-servers/54412/1 "2020-01-07T16:50:21Z")

</div>

Hi,

We are working on a pretty standard setup using wowza where we stitch mp4 files to get wowza scheduled stream and then transcode it to ABR streams which is then used to create custom HLS chunks, which is finally delivered using CDN.

The issue is we are having is that the wowza servers are experiencing high CPU usage. We restart the servers when they exceed certain threshold because it directly affects the stream playback. Restart brings the CPU usage to normal, but then the process repeats over a course of few days. We are trying to get to the bottom of the issue. We have tried analyzing thread dumps when the CPU usage was high, but that didn’t lead us anywhere. We were wondering if there is any method/tool you guys use/suggest on profiling the cpu/performance of the wowza server process? Please let me know if you need any more details

Thanks in advance

---

<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:** [January 7, 2020, 5:29pm UTC](https://community.wowza.com/t/tools-techniques-to-debug-high-cpu-usage-on-wowza-servers/54412/2 "2020-01-07T17:29:19Z")

</div>

We do have some articles on best practices that I can share with you [@Ashok Adhikari](http://community.wowza.com/community/questions/54241/tools-techniques-to-debug-high-cpu-usage-on-wowza.html#):

1. [Best practices to lower CPU](https://www.wowza.com/blog/4-tips-for-sizing-streaming-server-hardware)

2. [Reduce load on CPU](https://www.wowza.com/docs/server-specifications-for-nvidia-nvenc-and-nvidia-cuda-acceleration-with-wowza-transcoder) with graphic cards

3. [Engine Tuning to reduce CPU](https://www.wowza.com/docs/tune-wowza-streaming-engine-for-optimal-performance#cpu-resource-based-tuning)

If you still experience too high of a load on the server, you may want consider the [Wowza Load balancer tool.](https://www.wowza.com/docs/load-balancing-overview)

---

<div class="post-metadata">

**Author:** ![Ashok\_Adhikari](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@Ashok\_Adhikari](https://community.wowza.com/u/Ashok_Adhikari)\
**Post date:** [January 7, 2020, 9:18pm UTC](https://community.wowza.com/t/tools-techniques-to-debug-high-cpu-usage-on-wowza-servers/54412/3 "2020-01-07T21:18:00Z")

</div>

Hi Rose,

Thanks for the response. I have already gone through the links that you sent. I had also gone through the transcoder performance benchmark you have here [https://www.wowza.com/docs/wowza-transcoder-performance-benchmark](https://www.wowza.com/docs/wowza-transcoder-performance-benchmark). The server we use for the number of input streams is bigger than what’s recommended there.

The problem however is that the CPU utilization is normal for few days and then suddenly starts going up. There must be some threads malfunctioning or something else going on. I wanted to get help me on how such scenarios are debugged or what tools are used to analyze such behavior

---

<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:** [January 7, 2020, 10:54pm UTC](https://community.wowza.com/t/tools-techniques-to-debug-high-cpu-usage-on-wowza-servers/54412/4 "2020-01-07T22:54:44Z")

</div>

Ok, that’s too bad, I was hoping that would help. I checked with tech support and they said it would require deeper analysis through a support ticket. There could be too many reasons why and they need to run some tests.

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