Skip to content

Commit

Permalink
[improve] support master custom java opts (apache#2634)
Browse files Browse the repository at this point in the history
Co-authored-by: shown <[email protected]>
  • Loading branch information
Aias00 and yuluo-yx authored Aug 29, 2024
1 parent 17636ed commit 0d73ac6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script/assembly/server/bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ if [ ! -d $LOGS_DIR ]; then
fi

# JVM Configuration
JAVA_OPTS=" -Doracle.jdbc.timezoneAsRegion=false"
if [ -z "$JAVA_OPTS" ]; then
JAVA_OPTS=" -Doracle.jdbc.timezoneAsRegion=false"
else
JAVA_OPTS="${JAVA_OPTS} -Doracle.jdbc.timezoneAsRegion=false"
fi

# JVM Configuration
JAVA_MEM_OPTS=" -server -XX:SurvivorRatio=6 -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$LOGS_DIR"
Expand Down
1 change: 1 addition & 0 deletions script/docker/collector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN mkdir /var/run/sshd

ADD apache-hertzbeat-collector-*-incubating-bin.tar.gz /opt/

ENV JAVA_OPTS ""
ENV TZ=Asia/Shanghai
ENV LANG=en_US.UTF-8

Expand Down

0 comments on commit 0d73ac6

Please sign in to comment.