# WSE Http Rest Api - Current Usage - Server Monitoring - CPU RAM HEAP DISK - How to get them?

**URL:** https://community.wowza.com/t/wse-http-rest-api-current-usage-server-monitoring-cpu-ram-heap-disk-how-to-get-them/52658
**Category:** Wowza Developer Dojo
**Created:** [January 15, 2019, 9:14am UTC](https://community.wowza.com/t/wse-http-rest-api-current-usage-server-monitoring-cpu-ram-heap-disk-how-to-get-them/52658 "2019-01-15T09:14:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Alexandre\_Licinio](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Alexandre\_Licinio](https://community.wowza.com/u/Alexandre_Licinio)
#### Post date: [January 15, 2019, 9:14am UTC](https://community.wowza.com/t/wse-http-rest-api-current-usage-server-monitoring-cpu-ram-heap-disk-how-to-get-them/52658/1 "2019-01-15T09:14:31Z")

</div>

Hi Wowza folks,

We are looking a way to query http rest api to get current cpu, ram, heap and disk but we don’t find it in wowza documentation.

We tried:

```auto
http://<wowza-ip>:8087/v2/servers/_defaultServer_/monitoring/historic?actual

```

But no info about CPU, DISK, HEAP and RAM.

How to get this with http rest ?

Thanks

---

<div class="post-metadata">

### Author: ![Jason\_Hatchett](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hatchett/32/391_2.png) [@Jason\_Hatchett](https://community.wowza.com/u/Jason_Hatchett)
#### Post date: [January 15, 2019, 9:37pm UTC](https://community.wowza.com/t/wse-http-rest-api-current-usage-server-monitoring-cpu-ram-heap-disk-how-to-get-them/52658/2 "2019-01-15T21:37:31Z")

</div>

Hello Alexandre,

With query option (?) you would need to state a start and end time as described here:

[https://www.wowza.com/docs/statistics-query-examples#serverstats](https://www.wowza.com/docs/statistics-query-examples#serverstats)

Bottom of this page  
"Optionally, you can also include start and end time parameters in your query to return historical statistics only for that time range. Specify the start and end times in the format_start=yyyy-mm- **ddThh** :mm:ss_. For example, 2015-11-01T15:00:00. The following example query uses the start and end parameters:

If you remove the “?actual” from that URL you should get the full statistics as explained in the that lowest section of the example article above.

Please let us know if these recommendations still do not provide the REST-API response you are hoping to see.

Regards,

Jason Hatchett  
Technical Support  
Wowza Media Systems

---

<div class="post-metadata">

### Author: ![Alexandre\_Licinio](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Alexandre\_Licinio](https://community.wowza.com/u/Alexandre_Licinio)
#### Post date: [January 16, 2019, 8:53am UTC](https://community.wowza.com/t/wse-http-rest-api-current-usage-server-monitoring-cpu-ram-heap-disk-how-to-get-them/52658/3 "2019-01-16T08:53:41Z")

</div>

Hello @Jason Hatchett thanks for your answer but it is not working ☹

First, there is no “?actual” to remove from the example, because the example shows

```auto
historic?start=2015-11-01T15:00:00&end=2015-11-01T15:01:00"

```

I tried both:

```auto
:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/monitoring/historic?actual

```

and:

```auto
:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/monitoring/historic?actual

```

But no info from actual state of cpu ram heap and disk, furthermore, actual is empty:

```auto
<c>
   <iMillis>1547541993995</iMillis>
	<iChronology reference="../../b/iChronology"/>
</c>
<Entries>
   <entry>
        <string>actual</string>
        <list/>
   </entry>
<entry>

```

Thanks

---

<div class="post-metadata">

### Author: ![Jason\_Hatchett](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hatchett/32/391_2.png) [@Jason\_Hatchett](https://community.wowza.com/u/Jason_Hatchett)
#### Post date: [January 17, 2019, 12:19am UTC](https://community.wowza.com/t/wse-http-rest-api-current-usage-server-monitoring-cpu-ram-heap-disk-how-to-get-them/52658/4 "2019-01-17T00:19:20Z")

</div>

Hello Alexandre,

1. Can you please try the following instead with your user:password:

```auto
curl --digest -u "username:password" -X GET -H 'Accept:application/xml; charset=utf-8' http://<wowza-ip>:8087/v2/servers/_defaultServer_/monitoring/historic >> history.log

```

1. If this works as it did for us in our testing, please send back the history.log file in a ticket here:

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

Ideally, we will also want to review the /conf, /manager/logs, and /logs directory (only 10 days of logs are required initially) so we can review the configuration and see what may be preventing the data form posting when requested through this REST-API call.

Regards,

Jason Hatchett  
Technical Support Supervisor – Wowza Media Systems

---

<div class="post-metadata">

### Author: ![Alexandre\_Licinio](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Alexandre\_Licinio](https://community.wowza.com/u/Alexandre_Licinio)
#### Post date: [January 17, 2019, 8:52am UTC](https://community.wowza.com/t/wse-http-rest-api-current-usage-server-monitoring-cpu-ram-heap-disk-how-to-get-them/52658/5 "2019-01-17T08:52:31Z")

</div>

Hello @Jason Hatchett

Yes i can grab the history.log with your command but no actual stats ☹ only average.

Ok I open a ticket now.

Thanks

---

<div class="post-metadata">

### Author: ![Alexandre\_Licinio](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@Alexandre\_Licinio](https://community.wowza.com/u/Alexandre_Licinio)
#### Post date: [January 21, 2019, 7:31am UTC](https://community.wowza.com/t/wse-http-rest-api-current-usage-server-monitoring-cpu-ram-heap-disk-how-to-get-them/52658/6 "2019-01-21T07:31:45Z")

</div>

I opened a wowza ticket and the answer is:

```auto
http://localhost:8087/v2/machine/monitoring/current

```

It will return the actual state of CPU, RAM, HEAP and DISK. Even uptime and Connections counts. Very helpful.

```auto
<CurrentMachineStatistics><ServerUptime>587272</ServerUptime><CpuIdle>99</CpuIdle><CpuUser>1</CpuUser><CpuSystem>0</CpuSystem><MemoryFree>976048128</MemoryFree><MemoryUsed>15803494400</MemoryUsed><HeapFree>4885849104</HeapFree><HeapUsed>3502758896</HeapUsed><DiskFree>225946271744</DiskFree><DiskUsed>9148878848</DiskUsed><ConnectionCount>4</ConnectionCount></CurrentMachineStatistics>

```
