Wowza CPU Performance comparative for Live Streaming sites

The idea of this post is share some technical details about different Wowza servers settings, running into Live Streaming sites.

This 4 years working into multiple projects allow to me recollect stats about performance, currently support more than 100 Wowza Server daily and this list of CPU’s is the common used.

One normal question from my customers are, what server need to buy for my streams?

For this reason into this post I’ll share some metrics and performance graph from multiple servers.

All the server run, with Wowza Media Server 2.2.3 with JDK 1.6.0_XX over Centos 5/6 64 bits.

The list of server for this comparative are: (benchmark from

Methodology of the metric recollections:

  • At the moment to take the metrics all the server need to be using 1Gbps during almost 15 minutes (this metrics are based into 30 minutes samples)
  • All need to have similar concurrent users connected (the average is 4610 Concurrent Users into this comparative)

We’ll use 5 metric to compare:

  • CPU Available (Average)
  • JVM Memory Used (Average)
  • Server RAM
  • Load (Average)
  • Connected Users (Average)

Working with Wowza logs

Improve logs management and rotation over linux, combining Log4j and LogRotate.

Modify the for using other Appender:

# Access appender

Create the logrotate configuration file into Centos/RedHat the path is:

nano /etc/logrotate.d/wowza
/usr/local/WowzaMediaServer/logs/*.log {
       rotate 3

And the last step is you have very big logs files like is my case, and into one day I can have 2 GB of logs or more, move the log rotate for check every hour instead of every day

mv /etc/cron.daily/logrotate /etc/cron.hourly/

Inspired in this post:

Other way to work with Wowza logs, can be using external Jar for rotate the logs by Size and Time, this way if you are running into WinOS or don’t like to use LogRotate for this task can have similar functionality

For more details can check the Wowza Forum post:

Live Publish from iPhone to Wowza

I’m really happy to be part of the Beta Testers of this new and amazing application.

With Livu you can stream from your iPhone 3GS or newest to any Wowza Media Server using RTMP protocol…

Features supported:

  • Adaptive bitrate streaming
  • Authentication support
  • Touch to focus
  • Double tap to expose
  • Torch mode (iPhone 4 only)
  • WIFI Video sizes (192×144, 480×360)
  • Cellular streaming is limited to a low bitrate stream.

Here some screenshots:



You don’t have one account in any Wowza Server for test contact me, I’ll provide one.

Thanks to Steve for this application


Awstats mod for process Wowza Stats

Download the package from this link:

AWStats Mod for WowzaMediaServer (3986)
Awstats mod conf file (2821)

Add this lines into your Apache configuration:

# Directives to allow use of AWStats as a CGI

Alias /awstatsclasses /usr/local/awstats-wmc/wwwroot/classes/
Alias /awstatscss /usr/local/awstats-wmc/wwwroot/css/
Alias /awstatsicons /usr/local/awstats-wmc/wwwroot/icon/
ScriptAlias /awstats/ /usr/local/awstats-wmc/wwwroot/cgi-bin/

# This is to permit URL access to scripts/files in AWStats directory.

AddHandler cgi-script cgi pl
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all

Setting up the Crontab for update the Stats automatically

*/5 * * * * /usr/local/awstats-wmc/tools/ now > /var/log/awstats.log

Setting up the Wowza Log Appender for save the information in the format then Awstats will be understand

For doit this edit the normally into this path:


Add this appender:

 # Statistics appender (to use this appender add "serverAWStats" to the list of appenders in the first line of this file)


This way the logs will rotate automatically every day, and you can move this logs to the stats server… of curse you will have 1 day of delay with the stats… if the Awstats is on the same server than Wowza, you can update the logs every five minutes or less depend of your needs…

Test your configuration running the command manually

First run:


Update run:

/usr/local/awstats-wmc/wwwroot/cgi-bin/ -update  -showdropped

Real Time demo:

VOD Files
Live Streams

Here a few ScreenShots:

How to know what is happening inside Wowza?

I have seen into the Blog stats than the most common question is How To Monitor Wowza Media Server… for this reason I’ll start to write a series of Posts about this topic.

In this first post I’ll request your help too, let me know what you would like to know about your Wowza Server.

Currently the information I consider useful, is:

  • Concurrent Connection (separated by Protocol –  HTTP Cupertino / HTTP Silverlight / RTSP / RTMP)
  • MemoryHeap (the memory used by the JVM)
  • Version (if you have multiple server,it is difficult remember what version you have installed)
  • Bandwidth Traffic (by Vhost, Application or ApplicationInstances)

And here the question… What info would you like to know about Wowza?

Please post into the comment what else you would like to know…

Into the next post, I’ll show examples, graphs and other tips to get this information from the Wowza Server, using JMX protocol.

But here I show a snake peak of the information and the Graph you can have.

Mobile Demos

For Watch this videos, and listen the Online Radio, please enter to this URL with your mobile device

Please after test the Streaming with your Mobile Device, take 1 minute to send your Device Model using our Contact form, this way we can load this in our database and make public this result.

IMPORTANT: The Mobile Device need support H264 codec


Shoutcast Radio relay

How to read VOD files from Amazon S3 on Standalone Wowza Server

UPDATE: Official documentation be available here:

from this line all be outdated ——->

I’ll explain how to is possible read the files from Amazon S3 Storage but without using a EC2 instance.
For example your “localhost” or your Standalone Wowza server running on your own datacenter.

I did this for working on my local development environment, I’ll describe the steps for a Linux environment.

1- Download from this URL the 2 Jars, and copy this in /lib directories.

wms-plugin-amazonaws.jar (1873)
wms-plugin-mediacache.jar (1857)

2- Create the MediaCache folder:

mkdir /mnt/mediacache

3- Insert into the conf/Server.xml this lines:


4- Insert into the conf/vods3/Application.xml (create this first) this lines:


And in the end of the file, add this properties (I don’t know is needed this for read Public content):

                        <!-- Set these two properties to do S3 authentication -->

5- Restart the Wowza Server and try reading from S3 Bucket.

The URL can be like this:

Tell me is I missing some step or need some extra help.

Monitoring Wowza with the JMX interface

First we need Download CHECK_JMX from this link check_jmx

To see the option we have available, we can execute the plugin with the param «-help»

./check_jmx -help


Usage: check_jmx -U url -O object_name -A attribute [-K compound_key] [-I attribute_info] [-J attribute_info_key] -w warn_limit -c crit_limit [-v[vvv]] [-help]

where options are:

Prints this page
JMX URL, for example: service:jmx:rmi://
Object name to be checked, for example: java.lang:type=Memory
Attribute of the object to be checked, for example: NonHeapMemoryUsage
Attribute key for -A attribute compound data, for example, "used" (optional)
Attribute of the object containing information for text output (optional)
Attribute key for -I attribute compound data, for example, "used" (optional)
verbatim level controlled as a number of v (optional)
warning integer value
critical integer value

Note that if warning level > critical, system checks object attribute value to be LESS THAN OR EQUAL warning, critical
If warning level < critical, system checks object attribute value to be MORE THAN OR EQUAL warning, critical

Here had some generic examples
Show the Use of Memory Heap in to VM

./check_jmx -U service:jmx:rmi:// -O java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 10000000 -c 100000000

How many users connected to this server:

./check_jmx -U service:jmx:rmi:// -O WowzaMediaServerPro:name=Connections -A current -vvvv -w 10 -c 20

El resultado es algo como esto:

JMX OK current=5

This is an special case:

./check_jmx -U service:jmx:rmi:// -O WowzaMediaServerPro:vHosts=VHosts,vHostName=_defaultVHost_,applications=Applications,
name=Connections -A current -vvvv -c 1000 -w 750

Explain this parameters with more detail:

  • WowzaMediaServerPro:vHosts=VHosts <– No need more explanation
  • vHostName=_defaultVHost_ <– This are the Default VHosts
  • applications=Applications <– All the Application is inside of this Folder Name
  • applicationName=rtplive <– Application Name (In Version 2 of Wowza, is LIVE)
  • applicationInstances=ApplicationInstances <– can be multiple application instance in one application
  • applicationInstanceName=_definst_ <– Default application instance
  • name=Connections <– current connection to the Application Instance
  • Fell free to make any comment or question.

    VOD Demo (Amazon EC2 instance, S3 storage)

    THIS DEMO IS NOT WORKING NOW, Whe are Updating the Server

    All this demos are Hosted in a Standalone Instance, and the files are serving from S3 Storage platform.

    Demo a 778k (650k video + 128k audio)

    [pro-player width=’568′ height=’320′  type=’rtmp’ streamer=’rtmp://’]amazons3/wmconsulting.content/[/pro-player]

    Demo a 578k (450k video + 128k audio)

    [pro-player width=’568′ height=’320′ type=’rtmp’ autostart=’false’ streamer=’rtmp://’]amazons3/wmconsulting.content/[/pro-player]

    Demo a 328k (200k video + 128k audio)

    [pro-player width=’560′ height=’320′ type=’rtmp’ autostart=’false’ streamer=’rtmp://’]amazons3/wmconsulting.content/[/pro-player]

    Demo a 328k (200k video + 128k audio) Tamaño Original

    [pro-player width=’284′ height=’160′ type=’rtmp’ autostart=’false’ streamer=’rtmp://’]amazons3/wmconsulting.content/[/pro-player]

    ShoutCast Relay Demo


    In this first post I’ll show  a demo.

    About how can make a relay with Wowza Server from a Shoutcast server.

    Demo with JWPlayer

    [pro-player width=’182′ height=’120′ type=’rtmp’ fullscreen=’false’ autostart=’false’ streamer=’rtmpt://’][/pro-player]

    You can improve the user experience, provide a On-line Player in Flash, and running over the port 80 with RTMP protocol, this way don’t have problem with the firewall.

    Don’t hesitate to send your feedback or question about that.