Jetty 9.4.2.v20170220 发布,一个servlet容器

jopen 7年前
   <p style="text-align: center;"><strong><img alt="" src="https://simg.open-open.com/show/c53c385d7d99fc5b4c8840b305dfc43b.png" /></strong></p>    <p> </p>    <p>Jetty 是一个开源的servlet容器,它为基于Java的web内容,例如JSP和servlet提供运行环境。Jetty是使用Java语言编写的,它的API以一组JAR包的形式发布。开发人员可以将Jetty容器实例化成一个对象,可以迅速为一些独立运行(stand-alone)的Java应用提供网络和web连接。</p>    <p>和Tomcat的比较:</p>    <ol>     <li>Jetty更轻量级。这是相对Tomcat而言的。<br /> 由于Tomcat除了遵循Java Servlet规范之外,自身还扩展了大量JEE特性以满足企业级应用的需求,所以Tomcat是较重量级的,而且配置较Jetty亦复杂许多。但对于大量普通互联网应用而言,并不需要用到Tomcat其他高级特性,所以在这种情况下,使用Tomcat是很浪费资源的。这种劣势放在分布式环境下,更是明显。换成Jetty,每个应用服务器省下那几兆内存,对于大的分布式环境则是节省大量资源。而且,Jetty的轻量级也使其在处理高并发细粒度请求的场景下显得更快速高效。</li>     <li>Jetty更灵活<br /> 体现在其可插拔性和可扩展性,更易于开发者对Jetty本身进行二次开发,定制一个适合自身需求的Web Server。 相比之下,重量级的Tomcat原本便支持过多特性,要对其瘦身的成本远大于丰富Jetty的成本。用自己的理解,即增肥容易减肥难。</li>     <li>然而,当支持大规模企业级应用时,Jetty也许便需要扩展,在这场景下Tomcat便是更优的。</li>    </ol>    <h2>更新日志</h2>    <ul>     <li>612 Support HTTP Trailer</li>     <li> 1047 ReadPendingException and then thread death</li>     <li> 1150 Rationalize the session tests</li>     <li> 1226 Undefined JETTY_LOGS breaks jetty.sh</li>     <li> 1282 ByteArrayEndPointTest.testIdle() failure</li>     <li> 1284 IllegalStateException updating session inactive interval</li>     <li> 1290 http2-hpack not visible in OSGi</li>     <li> Allow application to hint that chunking should be used</li>     <li> 1292 jetty-home has unresolvable dependencies</li>     <li> 1296 Introduce HTTP parser "content complete" event</li>     <li> 1298 Generate gcloud-datastore.mod</li>     <li> 1300 Update to gcloud-datastore 0.8.2</li>     <li> 1307 Session scavenge needs to invalidate session</li>     <li> 1309 HttpClient GZIPContentDecoder should use the clients ByteBufferPool</li>     <li> 1313 Insufficient Bytes behavior change in jetty 9.4.x due to HTTP Trailers</li>     <li>   support?</li>     <li> 1315 Update to gcloud datastore 0.8.3-beta</li>     <li> 1317 AsyncProxyServletLoadTest fails</li>     <li> 1318 SessionEvictionFailure test fails on Windows</li>     <li> 1326 Jetty shutdown command got NullPointerException (http2 module added to</li>     <li>   start)</li>     <li> 1328 Response.setBufferSize(int) ISE should be more clear on reason</li>     <li> 1329 Update to gcloud-datastore 0.9.2-beta</li>     <li> 1331 NPE in ClasspathPattern.add when using module logging-log4j2.mod and</li>     <li>   other logging modules</li>     <li> 1342 Improve ByteBufferPool scalability</li>     <li> Allow application to hint that chunking should be used</li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4959000183601205016" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4959000183712093024" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>    <p>本站原创,转载时保留以下信息:<br /> 本文转自:深度开源(open-open.com)<br /> 原文地址:<a href="http://www.open-open.com/news/view/1ab869ea">http://www.open-open.com/news/view/1ab869ea</a></p>