while using RTMP Streaming there is lot of burden on my server - rtmp

1.I have server of my own. Using this server I want to run live streaming program in my server
2.For this I have selected RTMP streaming.
3.For this i have developed a website in which I have used JarisFLVPlayer
4.Till here everything is fine .
5. But thing is if visitors on our site increases, burden on the server is also increasing. Because each and every request is going to server.
6.Is there any solution to reduce burden on our server
7. Is there any solution like mirrioning ,catche... using in my website
Thanks in advance

Either improve the configuration of the server (I hope you know the game. More the users , Higher must be server's performance . hence you need to upgrade) or Go for RTMFP.

Related

What cloud service should we use for a Parse Server

We have 2 social iOS/Android apps of 100 concurrent users each and we can afford about $500/month in total... Each app should use 1-2 application servers and 1 db server.
I now have 1 application server and 1 db server for each app, both of 4-vcpus and 4GB RAM.
We are currently on Azure, but our 1-year is ending... I'm thinking of Heroku, DigitalOcean, back4app and Syncano. What do you suggest?
if you don't have a lot of users and you don't want to do a lot of work, Heroku is your best option.
However, if you want to have more control over your server, I think using bitnami is a good choice to run your server with a parse server image on your cloud platform of your choice. They support all major clouds.

Profile a web request end to end

I just recently moved an app from a single stack Linode configuration, to a full on Amazon configuration as such: Load balancer, multiple app server, RDS database instance.
My latency in the process went up by around 200-300ms. I understand that having the app server and database server not on the same stack, will increase latency some.
How do I go about profiling a typical request to see where all the latency comes from, preferably with a nice break down. This will allow me to optimize our weaknesses. At the end of the day I want to be back around 100-150 ms on a request.
This particular project is a Codeigniter project running on top of Apache & phpfpm.
I've had very good success in using this application https://blackfire.io/
Blackfire Profiler Fire up your PHP Apps Performance
Easy to setup and currently requires the Chrome Browser but it will give you a break down of your entire application. It also supports SAPI & CLI which is quite nice too.
It's at least a tool to help you identify where you might have some performance issues.

Is there a general way to get difficulty from any cryptocurrency coin?

Is there a way to get the difficulty from any coin even if there isn't a blockchain site like http://blockchain.info/ (they have an API)? I need to access it programmatically and i want to have it from the source so ripping it from a site that already lists them all isn't an option. Im using a vps Ubuntu server so the ram and mainly the diskspace is limited hence, i cant have alot of blockchains installed on it.
Most if not all have daemons you can use. You can run the daemon on the server and make a request for it. They should all be similar to the php one.

apache restricting bandwidth

Ive been looking around the web without much success.
I am running a local xampp (1.7.0) installation and a web app that i have developed that backups up my file and send them to an FTP server. The problem is that apache seem to be using only a limited amount of my bandwidth and i am unsure why this is happening.
It usually doesn't get above 64KB/s but i know that my current broadband will allow over 1MB/s which is a massive difference. Also if i use my FTP program to login to the server it will let me download in excess of 500KB/s. Does anyone know how i can get around this cos my backups are very big files and take hours to copy at 64KB/s?
Thanks Mic
You seem to be confusing download and upload speeds: "if i use my FTP program to login to the server it will let me download in excess of 500KB/s."
Are you perhaps on a 1Mb/64Kb ADSL or cable connection?

Server Setup: Based on Apache and Tomcat needs

I'm trying to setup a server based on our needs for a new website. Basically, I need to build a website based on social engine, and according to the platform's requirements (found here: http://www.socialengine.net/support/documentation/article?q=152&question=SocialEngine-Requirements) it requires the webserver to be Apache based.
Now my issue comes with the addition of a web application that needs to be included in the site. The web application requires the server to be capable of Asynchronous Request Processing, and is currently only supported by Tomcat or GlassFish.
I found a couple tutorials such as this one http://www.serverwatch.com/tutorials/article.php/2203891/Integrating-Tomcat-with-Apache.htm that explain how to "integrate" Tomcat into Apache. Would a server running Tomcat alone be able to handle the applet needs as well as serve the Apache (assuming HTTP) needs from the Social Engine platform? Are there any hosting providers any of you would reccomend?
Although I've done alot of front end stuff before, this is the first time i have to deal with any of the back end details, so my knowledge of server side functionality is really garbage. Please let me know if I'm not asking the right questions.
Thanks
You wouldn't really be able to use Tomcat for both apps, since the other one needs PHP. It's pretty common to have both Tomcat and Apache running on the same server. You might want to look up more recent documentation on mixing them, even this but definitely have a look at mod_proxy_ajp.
What's the other application? It's a little tricky to set up Asynchronous Request Processing if you are new to server apps, but there is also a lot of documentation, so if you're game, you can probably figure it out OK. You might also want to see if that app would work with node.js (hosting info here)
If you want to set it all up yourself, you could get a virtual private server from Rackspace Cloud or similar host or get a shared host that has the required apps already set up, which would limit your ability to customize the environment and may require 2 hosting plans, but would be easier to set up. It also somewhat depends on if both apps need to be on the same machine for any reason and/or on the same domain.
A regular LAMP stack will run SE4 just fine, however, you will need to do some tuning to get the page loads under 3 seconds. You will want to remove any Apache modules that you aren't using with a2dismod. For instance, if you're not using any Ruby on the site, a2dismod ruby. This will help get memory usage under control. APC is a must.
For a much more in depth read on tuning php/apache, please read this: Performance tuning on Apache, PHP, MySQL, WordPress v1.1 – Updated