Solved

Red5 RTMP Configuration Optimization

Posted on 2010-08-17
12
3,664 Views
Last Modified: 2013-11-08
I am running Red5 RTMP server on a Linux dedicated server which has 16 CPU cores.

The same server is also running PHP and MySQL.

In the Red5 configuration, what is the maximum that I should set the following values to for optimal performance on the basis that the majority (call it 80%) of the websites load will be on the Red5 server?

rtmp.io_threads=16
rtmp.connect_threads=4
rtmp.send_buffer_size=271360
rtmp.receive_buffer_size=65536
0
Comment
Question by:numberkruncher
  • 6
  • 3
12 Comments
 
LVL 61

Expert Comment

by:gheist
Comment Utility
I would suggest 1x-2x no. of cores for each type of jetty threads
And customizing network buffers in Linux instead of on each SW you have.
Network buffers consume RAM so they should be as small as possible (bandwidth x delay)
say you expect 256kbps stream over wimax
256kbx1s=32kB
or set it blindly to 65535 to avoid incompatibilities with broke firewalls in home routers...
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
also if you do not upload from webcams receive buffer can be one system page - 4kB
0
 
LVL 13

Author Comment

by:numberkruncher
Comment Utility
I am sorry but I do not understand your reply.

What is io_threads and what is connect_threads?  What are their optimal values for a 16 CPU server?
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
two threads of each type on each processor.
reasonably minimal net buffers.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 13

Author Comment

by:numberkruncher
Comment Utility
Please can you fill the following in for me to illustrate what you are saying?
rtmp.io_threads=
rtmp.connect_threads=
rtmp.send_buffer_size=
rtmp.receive_buffer_size=

Open in new window

0
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
Comment Utility
rtmp.io_threads=32
rtmp.connect_threads=32
rtmp.send_buffer_size=32768
rtmp.receive_buffer_size=4096
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
PS send/receive buffers can be tuned globally using sysctl
0
 
LVL 13

Author Closing Comment

by:numberkruncher
Comment Utility
Thanks, this was what I was after!
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
You may need to increase thread counts if you encounter connection problems (check netstat -s time after time)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now