Avatar of ldvhai
ldvhai asked on

Tuning Wowza Server

Hi Experts,

We have a Wowza VPS for POC/ Staging environment with 8vCPU, 12GB RAM on CentOS 7.

As the title, we would like to ask how to tune up our streaming VPS, because it seems consuming RAM a lots.

Ex: The hardware, Java heap size, thread pool size, kernel settings, vice versa...

We will be very appreciated with any advise from you, experts.

Many thanks.
System UtilitiesHardware* CentOS

Avatar of undefined
Last Comment
David Favor

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
David Favor

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
David Favor

One other consideration about audio/video streaming.

Java, to me, would be the absolute last language I'd choose for anything, especially streaming.

You'll end up with a mess of code which will be a nightmare to maintain + enhance.

You'll also always have time draining additional tasks like keeping TLS certs working for correct HTTPS.

The way I handle audio/video streaming consists of a few primary steps.

1) Transcode audio/video files as highly compress HD files.

2) For audio, if there's only one speaker, target mono mixing in output file.

3) For audio, spoken word only (like Podcasts or Courseware) compresses even more.

4) For video, Courseware targets lowest FPS possible, sometimes 1-5 FPS, depending on how rapidly video content actually changes.

5) For streaming use Apache + PHP + pseudo streaming.

The search - site:github.com php pseudo streaming 206 - provides a great starting point for streaming code.

6) Using #5-#6, you can have a fully functional streaming system working in a few minutes, which can handle 1,000,000s of simultaneous streams because this code uses Apache 206 (Ranged Responses).

If working with Wowza turns out to be unacceptably time consuming, you can always fall back to #5-#6 here, to be up + running in a few minutes.
Your help has saved me hundreds of hours of internet surfing.
fblack61