Skip to content

Commit 9d99b52

Browse files
committed
Set sensible max memory on 3rd party services running in Docker
1 parent 7d8db27 commit 9d99b52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ services:
88
discovery.type: single-node
99
bootstrap.memory_lock: "true"
1010
xpack.security.enabled: "false"
11+
ES_JAVA_OPTS: "-Xmx1G"
1112
volumes:
1213
- es-data:/usr/share/elasticsearch/data
1314

@@ -30,6 +31,7 @@ services:
3031
environment:
3132
ZOOKEEPER_CLIENT_PORT: 2181
3233
ZOOKEEPER_TICK_TIME: 2000
34+
KAFKA_HEAP_OPTS: "-Xmx512M"
3335
ports:
3436
- 2181:2181
3537

@@ -52,6 +54,7 @@ services:
5254
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
5355
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
5456
KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
57+
KAFKA_HEAP_OPTS: "-Xmx1G"
5558

5659
volumes:
5760
es-data:

0 commit comments

Comments
 (0)