LinuxQuestions.org
Register a domain and help support LQ
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 12-12-2007, 07:24 PM   #1
a1danel
LQ Newbie
 
Registered: Apr 2007
Location: California
Distribution: Debian/Redhat/Fedora
Posts: 17

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


Hi,

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 127.0.0.1:8010 127.0.0.1:48075 ESTABLISHED 23097/java
tcp 0 0 127.0.0.1:8009 127.0.0.1:48071 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:

RHEL 3
httpd-2.0.46
mod_jk2-2.0.4
tomcat 5.5.9

======workers.properties=========
worker.tomcat.type=ajp13
worker.tomcat.port=8009
worker.tomcat.host=localhost
worker.tomcat.connection_pool_timeout=600
worker.tomcat.socket_timeout=300
worker.tomcat.prepost_timeout=10000
=================================

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 07:25 PM. Reason: adding worker.properties info
 
Old 12-16-2007, 07:13 PM   #2
traene
Member
 
Registered: Jan 2005
Distribution: Archlinux, Debian, grml
Posts: 210

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.
 
  


Reply


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


All times are GMT -5. The time now is 07:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration