Skip to content

Commit 6ad3f81

Browse files
authored
Merge pull request #3343 from ControlSystemStudio/CSSTUDIO-2989
Set sensible max memory on 3rd party services running in Docker
2 parents 178e2c5 + 2932960 commit 6ad3f81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/docker-compose-kafka-elastic-mongodb.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ services:
88
discovery.type: single-node
99
bootstrap.memory_lock: "true"
1010
xpack.security.enabled: "false"
11+
ES_JAVA_OPTS: "-Xmx1G"
12+
http.host: 0.0.0.0
1113
volumes:
1214
- es-data:/usr/share/elasticsearch/data
1315

@@ -30,6 +32,7 @@ services:
3032
environment:
3133
ZOOKEEPER_CLIENT_PORT: 2181
3234
ZOOKEEPER_TICK_TIME: 2000
35+
KAFKA_HEAP_OPTS: "-Xmx512M"
3336
ports:
3437
- 2181:2181
3538

@@ -52,6 +55,7 @@ services:
5255
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
5356
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
5457
KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
58+
KAFKA_HEAP_OPTS: "-Xmx1G"
5559

5660
volumes:
5761
es-data:

0 commit comments

Comments
 (0)