Jetty -9.3.15.v20161220發布,一個servlet容器

jopen 8年前發布 | 7K 次閱讀 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便是更優的。

更新日志

  • 240 Missing content for multipart request after upgrade to Jetty > 9.2.7
  • 905 Jetty terminates SSL connections too early with Connection: close
  • 1020 Java Util Logging properties in wrong location
  • 1050 Add multiple FilterHolder to a ServletContextHandler may cause problems
  • 1051 NCSARequestLog/RolloverFileOutputStream does not roll day after DST ends
  • 1054 Using WebSocketPingPongListener with empty PING payload results in NullPointerException
  • 1057 Improve WebSocketUpgradeFilter fast path performance
  • 1062 Jetty allows requests to hang under PUT load
  • 1063 HostPortHttpField should handle port-only values
  • 1064 HttpClient sets chunked transfer-encoding
  • 1065 Response.setBufferSize checks for written content.
  • 1069 Host header should be sent with HTTP/1.0
  • 1072 InetAccessHandler needs InetAddress & Path based restrictions like IPAccessHandler did
  • 1078 DigestAuthentication should use realm from server, even if unknown in advance
  • 1081 DigestAuthenticator does not check the realm sent by the client
  • 1090 Allow WebSocketUpgradeFilter to be used by WEB-INF/web.xml
  • 1092 jetty-runner jstl support
  • 1098 MimeTypes.getCharsetFromContentType() unable parse "application/pdf;;; charset=UTF-8"
  • 1099 PushCacheFilter pushes POST requests
  • 1108 Please improve logging in SslContextFactory when there are no approved cipher suites
  • 1114 Add testcase for WSUF for stop/start of the Server
  • 1118 Filter.destroy() conflicts with ContainerLifeCycle.destroy() in WebSocketUpgradeFilter
  • 1123 Broken lifecycle for WebSocket's mappings
  • 1124 Allow configuration of WebSocket mappings from Spring
  • 1130 PROXY protocol support reports incorrect remote address
  • 1134 Jetty HTTP/2 client problems
  • 1135 Avoid allocations from Method.getParameterTypes() if possible
  • 1146 jetty.server.HttpInput deadlock
  • 1161 HttpClient and WebSocketClient should not remove all cookies on stop
  • 1169 HTTP/2 reset on a stalled write does not unblock writer thread
  • 1171 jetty-client throws NPE for request to IDN hosts only when  `HttpClient#send(...)` is called + 1175 Reading HttpServletRequest InputStream from a Filter then accessing getParameterNames() results in java.io.IOException: Missing content for  multipart request
  • 1181 Review buffer underflow cases in SslConnection
  • 1186 Where can i find SocketConnector .java and BlockingChannelConnector.java etc?

下載

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

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