Jetty 9.4.2.v20170220 發布,一個servlet容器
Jetty 是一個開源的servlet容器,它為基于Java的web內容,例如JSP和servlet提供運行環境。Jetty是使用Java語言編寫的,它的API以一組JAR包的形式發布。開發人員可以將Jetty容器實例化成一個對象,可以迅速為一些獨立運行(stand-alone)的Java應用提供網絡和web連接。
和Tomcat的比較:
- Jetty更輕量級。這是相對Tomcat而言的。
由于Tomcat除了遵循Java Servlet規范之外,自身還擴展了大量JEE特性以滿足企業級應用的需求,所以Tomcat是較重量級的,而且配置較Jetty亦復雜許多。但對于大量普通互聯網應用而言,并不需要用到Tomcat其他高級特性,所以在這種情況下,使用Tomcat是很浪費資源的。這種劣勢放在分布式環境下,更是明顯。換成Jetty,每個應用服務器省下那幾兆內存,對于大的分布式環境則是節省大量資源。而且,Jetty的輕量級也使其在處理高并發細粒度請求的場景下顯得更快速高效。 - Jetty更靈活
體現在其可插拔性和可擴展性,更易于開發者對Jetty本身進行二次開發,定制一個適合自身需求的Web Server。 相比之下,重量級的Tomcat原本便支持過多特性,要對其瘦身的成本遠大于豐富Jetty的成本。用自己的理解,即增肥容易減肥難。 - 然而,當支持大規模企業級應用時,Jetty也許便需要擴展,在這場景下Tomcat便是更優的。
更新日志
- 612 Support HTTP Trailer
- 1047 ReadPendingException and then thread death
- 1150 Rationalize the session tests
- 1226 Undefined JETTY_LOGS breaks jetty.sh
- 1282 ByteArrayEndPointTest.testIdle() failure
- 1284 IllegalStateException updating session inactive interval
- 1290 http2-hpack not visible in OSGi
- Allow application to hint that chunking should be used
- 1292 jetty-home has unresolvable dependencies
- 1296 Introduce HTTP parser "content complete" event
- 1298 Generate gcloud-datastore.mod
- 1300 Update to gcloud-datastore 0.8.2
- 1307 Session scavenge needs to invalidate session
- 1309 HttpClient GZIPContentDecoder should use the clients ByteBufferPool
- 1313 Insufficient Bytes behavior change in jetty 9.4.x due to HTTP Trailers
- support?
- 1315 Update to gcloud datastore 0.8.3-beta
- 1317 AsyncProxyServletLoadTest fails
- 1318 SessionEvictionFailure test fails on Windows
- 1326 Jetty shutdown command got NullPointerException (http2 module added to
- start)
- 1328 Response.setBufferSize(int) ISE should be more clear on reason
- 1329 Update to gcloud-datastore 0.9.2-beta
- 1331 NPE in ClasspathPattern.add when using module logging-log4j2.mod and
- other logging modules
- 1342 Improve ByteBufferPool scalability
- Allow application to hint that chunking should be used
下載
本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/1ab869ea
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!