Tag Archives: red5 hosting

red5 hosting or Real Time Messaging Protocol (RTMP) hosting

Real Time Messaging Protocol (RTMP) is a protocol for streaming audio, video and data over the Internet, between a Flash player and a server. A special software is required to run on server side for accepting and serving the rtmp connections from flash clients. We provide managed RTMP hosting based on RED5.

Red5 is shared on our shared hosting plans that means although you can use red5 to stream your videos you will not have access to the red5 folder. Most scripts based on red5 need to upload a folder inside red5/webapps.

This folder is important because it will be on the RTMP path, ex.


Contact us so we can upload your folder to red5/webapps and then give you the rtmp path.

RTMP Hosting

Could not reserve enough space for object heap

While restarting the red5 service on the server, If you get following error

——————BEGIN SESSION——————
root@server [~]# cd /usr/local/red5
root@server [/usr/local/red5]#sh red5.sh &
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

Then the best solution is to increase the RAM available to the red5. Locate red5.sh, it is on the red5 folder and replace this line:



And restart red5.sh
On our server s at Hosting Marketers, and Red5 Server we actually give more RAM to red5:
Xms1024m and Xmx2048m
This really depends on the kind of machine you have and the RAM available.

How to stop, start or restart red5

Important commands for the red5:

Login to ssh and enter the following commands.

#cd /usr/local/red (takes you to the red5 folder)

to stop red5:
#service red5 stop

the command to start red5:
#./red5.sh &

When you see this line:
2009-09-27 23:26:32,365 [main] INFO org.red5.server.Standalone – Startup done i
n: 5464 ms (it will be easy because the lines will stop running at this point)

Wait 15 seconds
Then you must log off from the terminal screen
Press ctrl+A+D (if you don’t log off, after a while red5 will go down again)

Every time you put some folder on /red5-server folder/webapps/ you will need to restart the red5.

Red5 Hosting

Red5 Tutorial and Red5 Hosting

Red 5 is a pretty amazing server software written in java. The Red 5 development team has put in tons of effort to make it a open source alternative to Adobe FMS ? Flash Media Server.
Red 5 is a perfectly suitable technology for ?Video On Demand? applications, streaming, publishing, mealtime collaboration, multi player gaming and more….
Red 5 is on all shared hosting plans of Hosting Marketers. By default the red5 server comes with some sample applications pre installed into it, like oflaDemo, fitcDemo, SoSample etc.

When installing and using red5 you have to keep in mind some configurations and security concerns. Red 5 was created to emulate the RTMP Protocol (real time messaging).
Even today where many don’t know the capabilities of Red5 or are scared of the complications offered by java coding, i must tell you… once you get to use it you will love it :).
There are many applications to be made with RTMP and many possibilities to be discussed. Here we will discuss a simple application that can stream from custom directory. This application will be server side and will help you set up your own basic application which does not require you to use the global oflaDemo.

Hosting Marketers offer you Red5 Hosting facility on their servers, which is needless to say … amazing.

You can host you own youtube or clipshare clones at a very nominal cost. However to avoid any problems, as you will be sharing resources on a shared server, it’s always better to create your own application, that accepts incoming outgoing requests.
This tutorial does not give you the scope to create the application from scratch, rather configure it to use a custom path on the server to stream from / record to . You can then safely use your own account path to handle streams. By default oflaDemo uses streams directory on the server to play/record streams.

Though this tutorial gives you a course on setting up the same, many have difficulties getting it done.
So here is the practical way of doing it.

I assume you already have basic Application class ready, which makes your application valid. We will simply use a custom filename generator to change the stream paths.