LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-07-2014, 12:35 PM   #1
umbloaded
Member
 
Registered: Apr 2013
Posts: 38

Rep: Reputation: Disabled
slow streaming


Hello, I'm using lighttpd on a server that has a very slow video streaming despite other resources load fine, i've tested httpd but still same issue, what could the problem be ?

Thanks
 
Old 10-07-2014, 12:41 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by umbloaded View Post
Hello, I'm using lighttpd on a server that has a very slow video streaming despite other resources load fine, i've tested httpd but still same issue, what could the problem be ?
Since you provide no useful details AT ALL, how can we even guess?? You don't say what you're streaming, how many users, where the data is coming from, what kind of connection it's running over, to what kind of client, using what kind of player, using what version/distro of Linux, lighthttpd, or httpd.

There could be any of a hundred different problems that could cause this.
 
Old 10-07-2014, 01:05 PM   #3
umbloaded
Member
 
Registered: Apr 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
I'm streaming flv videos with jwplayer, centos 6.5, lighttpd 1.4.35, about 700 http connections, data comes from the same server hard disk
 
Old 10-07-2014, 01:41 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by umbloaded View Post
I'm streaming flv videos with jwplayer, centos 6.5, lighttpd 1.4.35, about 700 http connections, data comes from the same server hard disk
Ok, that's some of the details...again, what kind of connection are the clients having? Internal (at a company), or external (internet)? What speed is the NIC on the server? Are these 700 CONCURRENT connections, or spaced out over the day? How big are the videos?

All of these things factor in...as does what the web page itself is written in. Do some basic troubleshooting first....put ONE of the FLV files on another server on the same network, with a simple web page that does nothing but serve up that one file. Hit it with a client, and see how fast it loads. If you get similar speeds, then you know it's network related...if you DON'T, you know the problem is on your server.

However...jwplayer and a SINGLE DISK for 700 users could be two HUGE factors.

Last edited by TB0ne; 10-07-2014 at 01:43 PM.
 
Old 10-08-2014, 02:58 AM   #5
umbloaded
Member
 
Registered: Apr 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
They are on the Internet, NIC speed is 1000Mb/s, the connections are concurrent and the average size of videos is about 150-200 Mb.
Pages are written in php but the site itself works fast, I can't test on another server because I have no access to the network.
 
Old 10-08-2014, 08:09 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by umbloaded View Post
They are on the Internet, NIC speed is 1000Mb/s, the connections are concurrent and the average size of videos is about 150-200 Mb.
Pages are written in php but the site itself works fast, I can't test on another server because I have no access to the network.
Ok, so that's a bit more detail. But are you saying you have a SINGLE 1GB NIC, serving 700 users 150MB videos off ONE HARD DRIVE? 700 users randomly pulling 150MB videos off one hard drive is going to bottleneck right there....and pipe them all over a SINGLE 1GB NIC, and you make it even slower.

Yes, the rest of the site may be 'fast', but you need to think about what you're doing. You're shoveling a few kb of text and maybe a 100kb graphic or so...that will be MUCH faster.

Again, you need to do some troubleshooting...if you don't have any access to the network, there's not much we can help you with there. And you also need to examine how you have jwplayer set up...how much of the video is it caching before playing starts? Spread the videos out onto additional spindles (or better, onto another server on a different network), and try to use some sort of load balancing. Also, you still don't say how the clients are connecting...if these people only have a slow DSL connection, they will have slow speed. Back to basic troubleshooting...can you go to a KNOWN fast connection on the Internet, and try it from there? If you don't have a problem, then there's nothing much for you to work on...your clients need faster connections to get faster speed.
 
Old 10-08-2014, 08:30 AM   #7
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
You seriously need a SAN or a tuned JBOD array to do this correctly - I notice now that Tb0ne mentioned this.

OR,.. depending on the number of videos, you could cache them in ram and serve them from there. On a typical 16G server you would be able to cache like 150 of them. Is this something that would be useful?
 
Old 10-08-2014, 12:38 PM   #8
umbloaded
Member
 
Registered: Apr 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
There are 700 concurrent connections but users aren't more than 200, I don't know how clients are connected I test it from my fast Internet connection and I tought it was a problem of lighttpd bad configuration.
I can't cache videos on ram because they are too many.

Last edited by umbloaded; 10-08-2014 at 12:40 PM.
 
Old 10-08-2014, 12:51 PM   #9
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
You should benchmark your disk and network I/O performance, then do some load testing on the box. With some concrete numbers you will be able to tell whether this is a hardware or software bottleneck.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Streaming video with VLC from windows machine is suddenly slow Banquo Linux - Server 4 03-04-2014 01:13 PM
[SOLVED] very slow video streaming using firefox bamatide Linux - Newbie 2 08-26-2011 04:48 PM
slow streaming videos rgreeves Linux - Software 1 07-10-2008 08:41 AM
Slow Streaming Video in Slackware Current bigfatgeek Linux - Hardware 3 04-15-2008 07:18 PM
Slow internet connection, bad audio streaming atr14 Linux - Networking 6 12-01-2005 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration