慢多少是服务从Tomcat静态内容? [英] How much slower is serving static content from Tomcat?

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

问题描述

所以,我有一个相当数量的JSP,servlet的,其中很多都是使用ICEfaces的的web应用程序。显然,大多数的这种将要留在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.

不过,我已经告诉静态内容(HTML,图像等)是在Tomcat不是像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天全站免登陆