从 Tomcat 提供静态内容的速度有多慢? [英] How much slower is serving static content from Tomcat?

查看:27
本文介绍了从 Tomcat 提供静态内容的速度有多慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我有一个包含大量 JSP、servlet 的 web 应用程序,其中很多都在使用 IceFaces.显然,大部分内容将不得不留在 Tomcat 中.

So, I have a webapp with a fair amount of JSPs, servlets, alot of which are using IceFaces. Obviously, most of this will have to stay in Tomcat.

但是,有人告诉我,Tomcat 上的静态内容(HTML、图像等)比纯网络服务器(如 Apache)慢.我的理解是,当您将 Tomcat 用作独立网络服务器时,它首先使用的是 Apache 版本.当然,我可能会弄错.

However, I've been told that static content (HTML, Images, etc.) is slower on Tomcat than a pure webserver like Apache. My understanding is that when you're using Tomcat as a stand-alone webserver, it's using a version of Apache in the first place. I may be mistaken on this, of course.

但是从 Tomcat 提供静态图像或文件的惩罚是什么?是否值得为一个低容量的网站闯入自己的网络服务器?

But what is the penalty for serving static images or files from Tomcat? Is it worth breaking out into its own webserver for a low volume site?

推荐答案

请参阅 Tomcat 连接器常见问题解答 获取一些信息.对于 Tomcat 的现代版本,性能差异比以前很多.对于低流量站点,您没有理由不能使用 Tomcat 提供所有内容.

See the Tomcat Connector FAQ for some information. For modern versions of Tomcat, the performance difference is much smaller than it used to be. For a low volume site, there is no reason that you cannot supply all content with Tomcat.

这篇关于从 Tomcat 提供静态内容的速度有多慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆