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. |
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. |
All times are GMT -5. The time now is 07:27 PM. |