This is an automated email from the ASF dual-hosted git repository.

fanjia pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/seatunnel-web.git


The following commit(s) were added to refs/heads/main by this push:
     new 43f045cc [Bug] [Seatunnel-web] gc.log, nohup.out is created outside of 
logs directory (#172)
43f045cc is described below

commit 43f045ccf41e7a9e22d7cf7b845f7f5be8b11b06
Author: Mohammad Arshad <[email protected]>
AuthorDate: Wed Aug 7 11:17:10 2024 +0530

    [Bug] [Seatunnel-web] gc.log, nohup.out is created outside of logs 
directory (#172)
---
 .../seatunnel-app/src/main/bin/seatunnel-backend-daemon.sh         | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/seatunnel-server/seatunnel-app/src/main/bin/seatunnel-backend-daemon.sh 
b/seatunnel-server/seatunnel-app/src/main/bin/seatunnel-backend-daemon.sh
index 12f155b6..78f38556 100755
--- a/seatunnel-server/seatunnel-app/src/main/bin/seatunnel-backend-daemon.sh
+++ b/seatunnel-server/seatunnel-app/src/main/bin/seatunnel-backend-daemon.sh
@@ -39,9 +39,10 @@ start() {
 
   check
 
-  JAVA_OPTS="${JAVA_OPTS} -server -Xms1g -Xmx1g -Xmn512m -XX:+PrintGCDetails 
-Xloggc:gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dump.hprof"
+  LOGDIR=${WORKDIR}/../logs
+  JAVA_OPTS="${JAVA_OPTS} -server -Xms1g -Xmx1g -Xmn512m -XX:+PrintGCDetails 
-Xloggc:${LOGDIR}/gc.log -XX:+HeapDumpOnOutOfMemoryError 
-XX:HeapDumpPath=dump.hprof"
   SPRING_OPTS="${SPRING_OPTS} -Dspring.config.name=application.yml 
-Dspring.config.location=classpath:application.yml"
-  JAVA_OPTS="${JAVA_OPTS} -Dseatunnel-web.logs.path=${WORKDIR}/../logs"
+  JAVA_OPTS="${JAVA_OPTS} -Dseatunnel-web.logs.path=${LOGDIR}"
   # check env JAVA_HOME
   if [ -z "$JAVA_HOME" ]; then
     echo "JAVA_HOME is not set"
@@ -52,7 +53,7 @@ start() {
   nohup $JAVA_HOME/bin/java $JAVA_OPTS \
   -cp "$WORKDIR/../conf":"$WORKDIR/../libs/*":"$WORKDIR/../datasource/*" \
   $SPRING_OPTS \
-  org.apache.seatunnel.app.SeatunnelApplication 2>&1 &
+  org.apache.seatunnel.app.SeatunnelApplication >> "${LOGDIR}/seatunnel.out" 
2>&1 &
   echo "seatunnel started"
 }
 # stop

Reply via email to