Skip to content

Commit da5b7cf

Browse files
ZHANGSHUNLINzhangShunLin
authored andcommitted
Remove Redundant and Duplicate Parameters from Startup Script
1 parent 400c14a commit da5b7cf

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

build/build-bifromq-starters/bin/bifromq-start.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ if "" == "%JVM_GC_OPTS%" (
126126
'-XX:ZAllocationSpikeTolerance=5' ^
127127
'-XX:+HeapDumpOnOutOfMemoryError' ^
128128
'-XX:HeapDumpPath="%LOG_DIR%"' ^
129-
'-Xlog:async' ^
130-
'-Xlog:gc:file="%LOG_DIR%\gc.log:time,tid,tags:filecount=5,filesize=50m"' ^
131-
'-XX:+HeapDumpOnOutOfMemoryError'
129+
'-Xlog:gc=info:file="%LOG_DIR%\gc.log:time,tid,tags:filecount=5,filesize=50m"' ^
132130
)
133131

134132
rem Memory options

build/build-bifromq-starters/bin/bifromq-start.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ if [ -z "$JVM_GC_OPTS" ]; then
146146
-XX:+UnlockDiagnosticVMOptions \
147147
-XX:+UseZGC \
148148
-XX:ZAllocationSpikeTolerance=5 \
149-
-Xlog:async \
150-
-Xlog:gc:file='${LOG_DIR}/gc-%t.log:time,tid,tags:filecount=5,filesize=50m' \
149+
-Xlog:gc=info:file='${LOG_DIR}/gc-%t.log:time,tid,tags:filecount=5,filesize=50m' \
151150
-XX:+CrashOnOutOfMemoryError \
152151
-XX:+HeapDumpOnOutOfMemoryError \
153152
-XX:HeapDumpPath='${LOG_DIR}' \
@@ -209,7 +208,7 @@ else
209208
-DDATA_DIR="$DATA_DIR" \
210209
-Dlogback.configurationFile="$LOG_CONF_FILE" \
211210
-Dpf4j.pluginsDir="$PLUGIN_DIR" \
212-
$NAME -c "$CONF_FILE" >"${LOG_DIR}/stdout.log" 2>&1 </dev/null &
211+
$NAME -c "$CONF_FILE" >"${LOG_DIR}/stdout.log" 2>&1 </dev/null &
213212
PIDS=$!
214213
echo "$PIDS" > "$PID_FILE"
215214
echo "$NAME process started: $PIDS"

0 commit comments

Comments
 (0)