Skip to content

Commit cfa6a78

Browse files
wicknicksewencp
authored andcommitted
KAFKA-4115: Increasing the heap settings for Connect scripts
Signed-off-by: Arjun Satish <arjunconfluent.io> Author: Arjun Satish <arjun@confluent.io> Reviewers: Randall Hauch <rhauch@gmail.com>, Ewen Cheslack-Postava <ewen@confluent.io> Closes #4213 from wicknicks/KAFKA-4115
1 parent 049342e commit cfa6a78

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

bin/connect-distributed.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ if [ "x$KAFKA_LOG4J_OPTS" = "x" ]; then
2626
export KAFKA_LOG4J_OPTS="-Dlog4j.configuration=file:$base_dir/../config/connect-log4j.properties"
2727
fi
2828

29+
if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then
30+
export KAFKA_HEAP_OPTS="-Xms256M -Xmx2G"
31+
fi
32+
2933
EXTRA_ARGS=${EXTRA_ARGS-'-name connectDistributed'}
3034

3135
COMMAND=$1

bin/connect-standalone.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ if [ "x$KAFKA_LOG4J_OPTS" = "x" ]; then
2626
export KAFKA_LOG4J_OPTS="-Dlog4j.configuration=file:$base_dir/../config/connect-log4j.properties"
2727
fi
2828

29+
if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then
30+
export KAFKA_HEAP_OPTS="-Xms256M -Xmx2G"
31+
fi
32+
2933
EXTRA_ARGS=${EXTRA_ARGS-'-name connectStandalone'}
3034

3135
COMMAND=$1

0 commit comments

Comments
 (0)