How much slower is serving static content from Tomcat?

后端 未结 2 1419
北海茫月
北海茫月 2020-12-31 04:07

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.

However, I\'ve been

2条回答
  •  醉酒成梦
    2020-12-31 04:09

    I agree except in two circumstances

    1. Tomcat's SSL using JSSE is noticeably slower. There are native versions that can be plugged in, but that tends to be more painful. In general the SSL is a bit less straightforward than the well-understand Apache Httpd server

    2. Fronting with an HTTpd server gives more flexibility re virtual web hosts etc. Tomcat is not as flexible in this regard. Unsurprisingly it lacks all the options in Apache :). An obvious nice one is built in compression of static files is very easy to add in Apache. It's not hard in tomcat extra, but it's more work.

    3. You are mistaken. Apache Httpd Server is a totally different beast and has no code shared with Tomcat.

    If neither is an issue, than yeah use tomcat by itself

提交回复
热议问题