Skip to content

Commit

Permalink
Merge pull request #284 from MuTalKing/add-new-command-options-for-ht…
Browse files Browse the repository at this point in the history
…tp-client

Add new command line options description (--max-http-client-connections and --disable-connection-reuse)
  • Loading branch information
leeturner authored Sep 18, 2024
2 parents f8b5b45 + dbdd64a commit 171e23c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions _docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,3 +307,14 @@ To output all raw traffic to console use `ConsoleNotifyingWiremockNetworkTraffic
If you would like to collect the traffic
and for example add it to your acceptance test's output,
you can use the `CollectingNetworkTrafficListener`.

## HTTP Client
If you want to increase the proxying performance of wiremock you can enable Connection reuse and increse max Connections

```java
// Maximum connections for Http Client
.maxHttpClientConnections(1000);
//Disable http connection reuse, `false` to enable
.disableConnectionReuse(true)
```

5 changes: 3 additions & 2 deletions _docs/standalone/java-jar.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ requests. Defaults to 10.
request journal (if enabled). When this limit is reached oldest entries
will be discarded.

`--max-http-client-connections` : Maximum connections for Http Client
`--max-http-client-connections`: Maximum connections for Http Client. Defaults to 1000.

`--jetty-acceptor-threads`: The number of threads Jetty uses for
accepting requests.
Expand Down Expand Up @@ -192,7 +192,7 @@ The last of these will cause chunked encoding to be used only when a stub define

`--disable-banner`: Prevent WireMock logo from being printed on startup

`--disable-connection-reuse` : Disable http connection reuse
`--disable-connection-reuse`: Disable http connection reuse. Defaults to `true`

`--disable-extensions-scanning` : Prevent extensions from being scanned and loaded from the classpath

Expand Down Expand Up @@ -223,6 +223,7 @@ Note: introduced in [3.0.0-beta-8](https://github.com/wiremock/wiremock/releases

`--version` : Prints wiremock version information and exits


`--help`: Show command line help

## Configuring WireMock using the Java client
Expand Down

0 comments on commit 171e23c

Please sign in to comment.