mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-09-17 09:40:58 +00:00
[improve] support master custom java opts (#2634)
Co-authored-by: shown <yuluo08290126@gmail.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user