Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add remote debug config for sbin/ext scripts. #835

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion sbin/ext/dss-apiservice-server
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
#
# Modified for Linkis 1.0.0

#export DEBUG_PORT=
if [ "$DEBUG_PORT" ];
then
export DEBUG_CMD="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$DEBUG_PORT"
fi

# get log directory
cd `dirname $0`
cd ..
Expand Down Expand Up @@ -38,7 +44,7 @@ fi

if test -z "$SERVER_JAVA_OPTS"
then
export SERVER_JAVA_OPTS="-DserviceName=$SERVER_SUFFIX -Xmx$SERVER_HEAP_SIZE -XX:+UseG1GC -Xloggc:$SERVER_LOG_PATH/$SERVER_SUFFIX.log"
export SERVER_JAVA_OPTS="-DserviceName=$SERVER_SUFFIX -Xmx$SERVER_HEAP_SIZE -XX:+UseG1GC -Xloggc:$SERVER_LOG_PATH/$SERVER_SUFFIX.log $DEBUG_CMD "
fi

export SERVER_CLASS=com.webank.wedatasphere.dss.apiservice.DSSApiServiceServerApplication
Expand Down
8 changes: 7 additions & 1 deletion sbin/ext/dss-datapipe-server
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
#
# Modified for Linkis 1.0.0

#export DEBUG_PORT=
if [ "$DEBUG_PORT" ];
then
export DEBUG_CMD="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$DEBUG_PORT"
fi

# get log directory
cd `dirname $0`
cd ..
Expand Down Expand Up @@ -38,7 +44,7 @@ fi

if test -z "$SERVER_JAVA_OPTS"
then
export SERVER_JAVA_OPTS="-DserviceName=$SERVER_SUFFIX -Xmx$SERVER_HEAP_SIZE -XX:+UseG1GC -Xloggc:$SERVER_LOG_PATH/$SERVER_SUFFIX.log"
export SERVER_JAVA_OPTS="-DserviceName=$SERVER_SUFFIX -Xmx$SERVER_HEAP_SIZE -XX:+UseG1GC -Xloggc:$SERVER_LOG_PATH/$SERVER_SUFFIX.log $DEBUG_CMD "
fi

export SERVER_CLASS=com.webank.wedatasphere.dss.datapipe.DSSDatapipeServerApplication
Expand Down
8 changes: 7 additions & 1 deletion sbin/ext/dss-flow-execution-server
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
#
# Modified for Linkis 1.0.0

#export DEBUG_PORT=
if [ "$DEBUG_PORT" ];
then
export DEBUG_CMD="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$DEBUG_PORT"
fi

# get log directory
cd `dirname $0`
cd ..
Expand Down Expand Up @@ -38,7 +44,7 @@ fi

if test -z "$SERVER_JAVA_OPTS"
then
export SERVER_JAVA_OPTS="-DserviceName=$SERVER_SUFFIX -Xmx$SERVER_HEAP_SIZE -XX:+UseG1GC -Xloggc:$SERVER_LOG_PATH/$SERVER_SUFFIX.log"
export SERVER_JAVA_OPTS="-DserviceName=$SERVER_SUFFIX -Xmx$SERVER_HEAP_SIZE -XX:+UseG1GC -Xloggc:$SERVER_LOG_PATH/$SERVER_SUFFIX.log $DEBUG_CMD "
fi

export SERVER_CLASS=com.webank.wedatasphere.dss.flow.execution.entrance.DSSFowExecutionServerApplication
Expand Down
8 changes: 7 additions & 1 deletion sbin/ext/dss-framework-orchestrator-server
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
#
# Modified for Linkis 1.0.0

#export DEBUG_PORT=
if [ "$DEBUG_PORT" ];
then
export DEBUG_CMD="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$DEBUG_PORT"
fi

# get log directory
cd `dirname $0`
cd ..
Expand Down Expand Up @@ -38,7 +44,7 @@ fi

if test -z "$SERVER_JAVA_OPTS"
then
export SERVER_JAVA_OPTS="-DserviceName=$SERVER_SUFFIX -Xmx$SERVER_HEAP_SIZE -XX:+UseG1GC -Xloggc:$SERVER_LOG_PATH/$SERVER_SUFFIX.log"
export SERVER_JAVA_OPTS="-DserviceName=$SERVER_SUFFIX -Xmx$SERVER_HEAP_SIZE -XX:+UseG1GC -Xloggc:$SERVER_LOG_PATH/$SERVER_SUFFIX.log $DEBUG_CMD "
fi

export SERVER_CLASS=com.webank.wedatasphere.dss.orchestrator.server.DSSOrchestratorServerApplication
Expand Down
8 changes: 7 additions & 1 deletion sbin/ext/dss-framework-project-server
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
#
# Modified for Linkis 1.0.0

#export DEBUG_PORT=
if [ "$DEBUG_PORT" ];
then
export DEBUG_CMD="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$DEBUG_PORT"
fi

# get log directory
cd `dirname $0`
cd ..
Expand Down Expand Up @@ -38,7 +44,7 @@ fi

if test -z "$SERVER_JAVA_OPTS"
then
export SERVER_JAVA_OPTS="-DserviceName=$SERVER_SUFFIX -Xmx$SERVER_HEAP_SIZE -XX:+UseG1GC -Xloggc:$SERVER_LOG_PATH/$SERVER_SUFFIX.log"
export SERVER_JAVA_OPTS="-DserviceName=$SERVER_SUFFIX -Xmx$SERVER_HEAP_SIZE -XX:+UseG1GC -Xloggc:$SERVER_LOG_PATH/$SERVER_SUFFIX.log $DEBUG_CMD "
fi

export SERVER_CLASS=com.webank.wedatasphere.dss.framework.project.server.DSSProjectServerApplication
Expand Down
8 changes: 7 additions & 1 deletion sbin/ext/dss-workflow-server
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
#
# Modified for Linkis 1.0.0

#export DEBUG_PORT=
if [ "$DEBUG_PORT" ];
then
export DEBUG_CMD="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$DEBUG_PORT"
fi

# get log directory
cd `dirname $0`
cd ..
Expand Down Expand Up @@ -38,7 +44,7 @@ fi

if test -z "$SERVER_JAVA_OPTS"
then
export SERVER_JAVA_OPTS="-DserviceName=$SERVER_SUFFIX -Xmx$SERVER_HEAP_SIZE -XX:+UseG1GC -Xloggc:$SERVER_LOG_PATH/$SERVER_SUFFIX.log"
export SERVER_JAVA_OPTS="-DserviceName=$SERVER_SUFFIX -Xmx$SERVER_HEAP_SIZE -XX:+UseG1GC -Xloggc:$SERVER_LOG_PATH/$SERVER_SUFFIX.log $DEBUG_CMD "
fi

export SERVER_CLASS=com.webank.wedatasphere.dss.workflow.DSSWorkflowServerApplication
Expand Down