Skip to content

Commit

Permalink
[HotFix] [Remote Debug] Description When remote debug is enabled, the…
Browse files Browse the repository at this point in the history
… Seatunel Server 5801 port is not listening properly
  • Loading branch information
hawk9821 committed Jul 15, 2024
1 parent 21246a3 commit 7effd23
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ REM Server Debug Config
REM Usage instructions:
REM If you need to debug your code in cluster mode, please enable this configuration option and listen to the specified
REM port in your IDE. After that, you can happily debug your code.
REM set "JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=5001,suspend=y"
REM set "JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=5001,suspend=n"

if exist "%CONF_DIR%\log4j2.properties" (
set "JAVA_OPTS=%JAVA_OPTS% -Dhazelcast.logging.type=log4j2 -Dlog4j2.configurationFile=%CONF_DIR%\log4j2.properties"
Expand Down Expand Up @@ -119,4 +119,4 @@ if "%HELP%"=="false" (
java %JAVA_OPTS% -cp "%CLASS_PATH%" %APP_MAIN% %args%
)

endlocal
endlocal
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ JAVA_OPTS="${JAVA_OPTS} -Dhazelcast.config=${HAZELCAST_CONFIG}"
# Usage instructions:
# If you need to debug your code in cluster mode, please enable this configuration option and listen to the specified
# port in your IDE. After that, you can happily debug your code.
# JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=5001,suspend=y"
# JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=5001,suspend=n"

CLASS_PATH=${APP_DIR}/lib/*:${APP_JAR}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ set "JAVA_OPTS=%JAVA_OPTS% -Dseatunnel.config=%SEATUNNEL_CONFIG%"
set "JAVA_OPTS=%JAVA_OPTS% -Dhazelcast.config=%HAZELCAST_CONFIG%"

REM if you want to debug, please
REM set "JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=5000,suspend=y"
REM set "JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=5000,suspend=n"

REM Log4j2 Config
if exist "%CONF_DIR%\log4j2_client.properties" (
Expand Down
4 changes: 2 additions & 2 deletions seatunnel-core/seatunnel-starter/src/main/bin/seatunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ JAVA_OPTS="${JAVA_OPTS} -Dhazelcast.config=${HAZELCAST_CONFIG}"
# Usage instructions:
# If you need to debug your code in cluster mode, please enable this configuration option and listen to the specified
# port in your IDE. After that, you can happily debug your code.
# JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=5000,suspend=y"
# JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=5000,suspend=n"

# Log4j2 Config
if [ -e "${CONF_DIR}/log4j2_client.properties" ]; then
Expand All @@ -108,4 +108,4 @@ while IFS= read -r line || [[ -n "$line" ]]; do
fi
done < ${APP_DIR}/config/jvm_client_options

java ${JAVA_OPTS} -cp ${CLASS_PATH} ${APP_MAIN} ${args}
java ${JAVA_OPTS} -cp ${CLASS_PATH} ${APP_MAIN} ${args}

0 comments on commit 7effd23

Please sign in to comment.