Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-12-2007, 06:24 PM   #1
LQ Newbie
Registered: Apr 2007
Location: California
Distribution: Debian/Redhat/Fedora
Posts: 18

Rep: Reputation: 0
tomcat+apache with large flash or streaming video.


I am having some issues on our web servers where when we place large 1MB+ flash or mpeg videos and we start to get a lot of hits the server starts to really "drag its feet." We have all contect flowing through apache and then everything gets mounted to a tomcat servlet. When we move the videos to there own virtual host that does not get forwarded to tomcat for handling and then we link to them from a tomcat application the web server respons perfectly.

It doesn't seem to be much of a memory usage issue as our memory usage logs seems to be normal "using 177MB of 511MB" but I am seeing a lot of open tcp connections between tomcat and apache:

tcp 0 0 ESTABLISHED 23097/java
tcp 0 0 ESTABLISHED 29640/java

(x 250+) when we have tomcat handling the streaming video. when we have just apache and link to it from tomcat then we only have about (x 30) connections. Any ideas?

I am running:

tomcat 5.5.9

I can live with apache handling the video files; I am just looking for clues as to why tomcat has issues handling it.

Last edited by a1danel; 12-12-2007 at 06:25 PM. Reason: adding info
Old 12-16-2007, 06:13 PM   #2
Registered: Jan 2005
Distribution: Archlinux, Debian, Centos
Posts: 219

Rep: Reputation: 33
Not quite sure if this helps: I guess tomcat is a java server, which is used to do some java interactive things like servlets, ejbs, webservices and stuff. And you are hosting flash videos. These might not be processed in a java kinda way . So apache httpd should be okay to host these files.

Short: Tomcat should be used when you need to do some java things.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache sa a audio/video streaming server proNick Linux - Networking 2 07-17-2009 05:34 PM
saving a streaming flash movie linuxhippy Slackware 35 10-20-2007 04:22 PM
apache-tomcat and jakarta-tomcat shifter Programming 1 07-28-2007 10:36 PM
Why use Apache with Tomcat rather than just Tomcat itself? davee Linux - Software 1 08-21-2003 09:47 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:03 PM.

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