Skip to content

Commit

Permalink
[Bug] [Seatunnel-web] gc.log, nohup.out is created outside of logs di…
Browse files Browse the repository at this point in the history
…rectory (#172)
  • Loading branch information
arshadmohammad authored Aug 7, 2024
1 parent 6155509 commit 43f045c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 43f045c

Please sign in to comment.