[Jmeter] Implementation 中 JAVA 與 HTTPClient4 如何探尋兩者之間的區別
最近學習 jmeter 工具中,發現 【HTTPRequest】- 【Advanced】有個選項為 【ClientImplementation】
- Java
- HTTPClient4
官網上的描述不是非常理解,不是很明白這兩個選項在實際請求中各自到底有何不同,有什麼辦法可以驗證兩者之間的差異?
There are two different test elements used to define the samplers:
- Java
- uses the HTTP implementation provided by the JVM. This has some limitations in comparison with the HttpClient implementations - see below.
- HTTPClient4
- uses Apache HttpComponents HttpClient 4.x.
-
Blank Value
- does not set implementation on HTTP Samplers, so relies on HTTP Request Defaults if present or on jmeter.httpsampler property defined in jmeter.properties
-
The Java HTTP implementation has some limitations:
- There is no control over how connections are re-used. When a connection is released by JMeter, it may or may not be re-used by the same thread.
- The API is best suited to single-threaded usage - various settings are defined via system properties, and therefore apply to all connections.
- No support of Kerberos authentication
- It does not support client based certificate testing with Keystore Config.
- Better control of Retry mechanism
- It does not support virtual hosts.
- It supports only the following methods: GET, POST, HEAD, OPTIONS, PUT, DELETE and TRACE
- Better control on DNS Caching with DNS Cache Manager
相關文章
- TCP協議與UDP協議以及兩者之間的區別TCP協議UDP
- Java中Statement與PreparedStatement與CallableStatement之間的區別 - javarevisitedJava
- Java 中,如何計算兩個日期之間的差距?Java
- 【等保小知識】等保與關保兩者之間有啥區別?
- __weak與__block區別,深層理解兩者區別BloC
- Oracle與OpenJDK之間的區別OracleJDK
- PrepareStatement與Statement之間的區別REST
- JS:解析forEach()、map()原始碼及淺談兩者之間的區別JS原始碼
- Java中(==)與equals的區別Java
- GCD與NSOperation之間的區別GC
- PHP abstract與interface之間的區別PHP
- Java集合面試題(03) Java中HashMap和HashTable之間區別Java面試題HashMap
- 尋源和採購之間的區別是什麼?
- oracle中sysdate和current_date兩者的區別Oracle
- XML和HTML有什麼區別?兩者之間有什麼關聯?XMLHTML
- 掌握時間與空間:深入探討Golang中的時間戳與時區轉換Golang時間戳
- Java中replace與replaceAll區別Java
- java中Map,List與Set的區別Java
- Java中Array與ArrayList的主要區別Java
- Java中抽象類和介面的介紹及二者間的區別Java抽象
- 通俗易懂講解貝葉斯論和頻率論兩者之間的區別?
- 雲與本地部署 ERP 之間的區別
- size resize與capacity reserve之間的區別
- Java中類與物件的關係與區別Java物件
- 小程式直播與抖音直播兩者有何區別?
- 表格的cellpadding與cellspacing兩者區別介紹padding
- 淺談java中extends與implements的區別Java
- java中過載與重寫的區別Java
- Java中Vector與ArrayList的區別詳解Java
- 深度學習與機器學習之間區別 - javaworld深度學習機器學習Java
- [譯]HTML attribute與DOM property之間的區別?HTML
- TCP、UDP、HTTP、SOCKET之間的區別與聯絡TCPUDPHTTP
- 陣列地址與指標之間的區別與聯絡陣列指標
- 大資料分析與機器學習之間的區別與聯絡大資料機器學習
- Java中Array與ArrayList之間的轉換Java
- Vue中computed、methods和watch之間的區別Vue
- [譯] Jquery中 .bind() .live() .delegate() 和 .on() 之間的區別jQuery
- Python中堆、棧、佇列之間的區別Python佇列