# How to get CPU Wow ?

**URL:** <https://community.wowza.com/t/how-to-get-cpu-wow/40964>\
**Category:** Wowza Streaming Engine\
**Created:** [January 28, 2015, 1:49am UTC](https://community.wowza.com/t/how-to-get-cpu-wow/40964 "2015-01-28T01:49:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manh\_Hung\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Manh\_Hung\_Nguyen](https://community.wowza.com/u/Manh_Hung_Nguyen)\
**Post date:** [January 28, 2015, 1:49am UTC](https://community.wowza.com/t/how-to-get-cpu-wow/40964/1 "2015-01-28T01:49:16Z")

</div>

Dear everyone,

I want to get CPU Wowza information of my Wowza Servers for a centralized monitor server.

How can I get it by JMX or a java program?

Thank you.

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [January 28, 2015, 12:58pm UTC](https://community.wowza.com/t/how-to-get-cpu-wow/40964/2 "2015-01-28T12:58:36Z")

</div>

Hi,

Please take a look at the “[How to set up a command line interface to Wowza API to start/stop VHost using JMX](https://www.wowza.com/docs/how-to-set-up-a-command-line-interface-to-wowza-api-to-start-stop-vhost-using-jmx)” forum article showing a Java example on how to access the JMX interface.

You can then use the “getSystemCpuLoad” function to get your system’s CPU load.

Also, there are other methods of monitoring a system load from a central location. You can also look into the [CACTI](http://www.cacti.net/) tool which is pooling the information from the system using SNMP.

Another possibility would be [NAGIOS](http://www.nagios.org/) which is also able to send notifications when certain levels of CPU usage are reached.

Zoran

---

<div class="post-metadata">

**Author:** ![Kay\_Werner1](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@Kay\_Werner1](https://community.wowza.com/u/Kay_Werner1)\
**Post date:** [August 19, 2021, 5:00pm UTC](https://community.wowza.com/t/how-to-get-cpu-wow/40964/3 "2021-08-19T17:00:05Z")

</div>

I’d like to stress this topic also (after some years of silience).  
I’ll write some kind of health probe as a HTTProvider. That works fine so far. Now I want to add also the current load of the systems and the CPU usage as one metric.

import java.lang.management.\*;  
OperatingSystemMXBean operatingSystemMXBean = ManagementFactory.getOperatingSystemMXBean();  
operatingSystemMXBean.getSystemLoadAverage()  
-\> this one returns always -1.0 (not available)  
and the above mentioned getSystemCpuLoad is not part of java.lang.management… (but only of the com.sun… implementation which is not available as well)

How can I access the monitoring CPU stats wich are shown in the frontend, but with Java code in the HTTProvider?

Kay
