You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by GitBox <gi...@apache.org> on 2022/11/29 04:01:43 UTC

[GitHub] [incubator-linkis] casionone commented on a diff in pull request #3891: [ISSUE-3887]linkis-daemon.sh can dynamically specify the debug port and dynamically specify the jvm memory

casionone commented on code in PR #3891:
URL: https://github.com/apache/incubator-linkis/pull/3891#discussion_r1034277228


##########
linkis-dist/package/sbin/linkis-daemon.sh:
##########
@@ -66,13 +113,18 @@ function start()
       fi
   fi
   export SERVER_START_BIN=$LINKIS_HOME/sbin/ext/linkis-$SERVER_NAME
+  export SERVER_START_COMMON=$LINKIS_HOME/sbin/ext/linkis-common-start
   if [[ ! -f "${SERVER_START_BIN}" ]]; then
       echo "The $SERVER_NAME is wrong or the corresponding startup script does not exist: "
       echo "$SERVER_START_BIN"
       exit 1
   else
       echo "Start server, startup script:  $SERVER_START_BIN"
       export SERVER_NAME=linkis-$SERVER_NAME
+      sed -i "/.*export DEBUG_PORT*/c\#export DEBUG_PORT=" $SERVER_START_BIN
+      sed -i "/.*export DYNAMIC_JVM*/c\#export DYNAMIC_JVM=" $SERVER_START_COMMON

Review Comment:
   By modifying the file, there will be persistence problems
   Whether to consider adjusting dynamic parameter passing



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org