Jetty v9.4.4.v20170414 發布,一個servlet容器

jopen 7年前發布 | 6K 次閱讀 Jetty Java Servlet

 

Jetty 是一個開源的servlet容器,它為基于Java的web內容,例如JSP和servlet提供運行環境。Jetty是使用Java語言編寫的,它的API以一組JAR包的形式發布。開發人員可以將Jetty容器實例化成一個對象,可以迅速為一些獨立運行(stand-alone)的Java應用提供網絡和web連接。

和Tomcat的比較:

  1. Jetty更輕量級。這是相對Tomcat而言的。
    由于Tomcat除了遵循Java Servlet規范之外,自身還擴展了大量JEE特性以滿足企業級應用的需求,所以Tomcat是較重量級的,而且配置較Jetty亦復雜許多。但對于大量普通互聯網應用而言,并不需要用到Tomcat其他高級特性,所以在這種情況下,使用Tomcat是很浪費資源的。這種劣勢放在分布式環境下,更是明顯。換成Jetty,每個應用服務器省下那幾兆內存,對于大的分布式環境則是節省大量資源。而且,Jetty的輕量級也使其在處理高并發細粒度請求的場景下顯得更快速高效。
  2. Jetty更靈活
    體現在其可插拔性和可擴展性,更易于開發者對Jetty本身進行二次開發,定制一個適合自身需求的Web Server。 相比之下,重量級的Tomcat原本便支持過多特性,要對其瘦身的成本遠大于豐富Jetty的成本。用自己的理解,即增肥容易減肥難。
  3. 然而,當支持大規模企業級應用時,Jetty也許便需要擴展,在這場景下Tomcat便是更優的。

更新日志

  • 612 Support HTTP Trailer
  • 877 Programmatic servlet mappings cannot override mappings from    webdefault.xml using quickstart
  • 1201 X-Forwarded-For incorrectly set in jetty-http-forwarded.xml
  • 1334 Dispatcher.commitResponse() failure is unreported
  • 1386 Optimise session writes
  • 1411 Use short-circuit operator in websocket Frame
  • 1417 Improve classloader dumping
  • 1418 setWriteListener causes race
  • 1423 Update to gcloud datastore 0.10.0-beta
  • 1433 Wrong status message for code 417
  • 1434 Improve properties in jetty-gzip.xml
  • 1435 Apply setCharacterEncoding to static content without an assumed encoding
  • 1436 NullPointerException when calling changeSessionId
  • 1439 Allow UNC paths to function as Resource bases
  • 1440 Improve lock contention for low resources scheduling strategy
  • 1444 Deprecate Continuations
  • 1448 StackOverflowError when using URLStreamHandlerFactory in    WebAppClassloader
  • 1449 Unable to find the JVM Lib directory in WebAppContext
  • 1450 JMX does not export session statistics
  • 1452 Add tests for [want|need]ClientAuth
  • 1454 CachedContentFactory locks filesystem after first read of file
  • 1456 Error dispatch race with async write
  • 1463 SSL Renegotiate limit
  • 1466 Only use ServletContainerInitializers from server path for web.xml <   3.0
  • 1467 Change default for WebAppContext.isConfiguredDiscovered to false
  • 1469 IllegalStateException in RolloverFileOutputStream
  • 1472 Broken *.gz symlinks cause NPE in DefaultServlet.
  • 1475 SIOOBE in ContextHandler startup
  • Apply setCharacterEncoding to static content without an assumed encoding

下載

本站原創,轉載時保留以下信息:
本文轉自:深度開源(open-open.com)
原文地址:http://www.baiduhome.net/news/view/281899f4

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!