Jetty 9.4.5.v20170427 发布,一个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>1235 DNS lookup in newSSLEngine(InetSocketAddress address)</li>     <li> 1348 Add a BOM artifact</li>     <li> 1404 Jetty 9.4.2 does not support constructors with varargs in XML config    files</li>     <li> 1448 StackOverflowError when using URLStreamHandlerFactory in    WebAppClassloader</li>     <li> 1475 SIOOBE in ContextHandler startup</li>     <li> 1480 Expand URIUtil.canonicalPath() testing</li>     <li> 1481 Add convenient method to add user to Realm</li>     <li> 1486 redirect to welcome file broken for sub directory</li>     <li> 1487 add decoded paths</li>     <li> 1492 Unable to override logback.version</li>     <li> 1493 Response.sendError should preserve cookies</li>     <li> 1494 Module resolution ignores alternate providers where a .mod file of the    same name exists</li>     <li> 1500 HttpServletResponse.sendError() should commit and close</li>     <li> 1502 WebSocket endpoints cannot be mapped when the session id is url encoded</li>     <li> 1504 Improve defaults for HTTP/2 flow control</li>     <li> 1505 jetty.base.uri and jetty.home.uri</li>     <li> 1506 Make HttpChannels recycling configurable for HTTP/2</li>     <li> 1507 Negative delay Timer.schedule exception due to mismatched local and    _logTimeZone values</li>     <li> 1508 Update to gcloud datastore 1.0.0</li>     <li> 1510 Look for SessionHandlers instead of ContextHandlers in    DefaultSessionIdManager</li>     <li> Add a BOM artifact</li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4959007393407493213" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4959007393534796699" 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/4af1cf05">http://www.open-open.com/news/view/4af1cf05</a></p>