Skip to content

Commit ea6cc34

Browse files
authored
Increasing default memory limits (#673)
1 parent 4133461 commit ea6cc34

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

RELEASE-NOTES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## 5.8.0
1+
## 5.8.1
22
* DNS over HTTPS, see #138
33
* Option to disable a specific container to be resolved from DPS, see #596.
4+
* Increasing default memory limits up to 60mb, see #511.
45

56
## 5.6.2
67
* Fixing Getting Non-authoritative answer when unexpected, see #608.

docs/content/3-configuration/_index.en.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,24 @@ See more on [specify from which network solve container][6].
136136
| `log.level` | Logging level used by DPS. | `INFO` |
137137
| `log.file` | Output target for logs (file path or console). | `console` |
138138

139+
### Memory Limits
140+
141+
When on binary mode DPS has a default limit of `MaxHeapSize=50m` + `MaxNewSize=10m`, you can change that by:
142+
143+
**Command Line**
144+
```bash
145+
./dns-proxy-server -XX:MaxHeapSize=50m -XX:MaxNewSize=10m
146+
```
147+
148+
**Docker Compose**
149+
```yaml
150+
services:
151+
dps:
152+
image: defreitas/dns-proxy-server
153+
command: -XX:MaxHeapSize=50m -XX:MaxNewSize=10m
154+
```
155+
156+
139157
### File Configuration Example
140158

141159
* [Solver remote circuit breaker configuration][3]

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=5.8.0-snapshot
1+
version=5.8.1-snapshot

src/main/resources/META-INF/native-image/dps/native-image.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ Args=-H:ReflectionConfigurationResources=${.}/reflect-config.json \
2020
-H:+ReportExceptionStackTraces --enable-url-protocols=http -H:+StackTrace \
2121
--no-fallback --install-exit-handlers \
2222
-march=compatibility \
23-
-R:MaxHeapSize=10m -R:MaxNewSize=1m
23+
-R:MaxHeapSize=50m -R:MaxNewSize=10m

0 commit comments

Comments
 (0)