Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new command line options description (--max-http-client-connections and --disable-connection-reuse) #284

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading