Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Solve #1606, Make JVM parameter configurable (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
littlezhou committed Mar 2, 2018
1 parent 95e1445 commit e8aeb5b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,14 @@ function init_command() {
ALLOW_DAEMON_OPT=true
SMART_VARGS+=" -format"
JAVA_OPTS+=" -Dsmart.log.file="${SMART_LOG_FILE_NAME}
JAVA_OPST+=" ${SSM_JAVA_OPT} ${SSM_SERVER_JAVA_OPT}"
;;
smartserver)
SMART_CLASSNAME=org.smartdata.server.SmartDaemon
SMART_PID_FILE=/tmp/SmartServer.pid
ALLOW_DAEMON_OPT=true
JAVA_OPTS+=" -Dsmart.log.file="${SMART_LOG_FILE_NAME}
JAVA_OPST+=" ${SSM_JAVA_OPT} ${SSM_SERVER_JAVA_OPT}"
SMART_VARGS+=" -D smart.agent.master.address="${SSM_EXEC_HOST}
reorder_lib
;;
Expand All @@ -299,6 +301,7 @@ function init_command() {
export SMART_LOG_FILE_NAME=${SMART_AGENT_LOG_FILE_NAME}
export SMART_LOG_FILE=${SMART_LOG_DIR}/${SMART_LOG_FILE_NAME}
JAVA_OPTS+=" -Dsmart.log.file="${SMART_LOG_FILE_NAME}
JAVA_OPST+=" ${SSM_JAVA_OPT} ${SSM_AGENT_JAVA_OPT}"
SMART_VARGS+=" -D smart.agent.address="${SSM_EXEC_HOST}
;;
getconf)
Expand Down
10 changes: 10 additions & 0 deletions conf/smart-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@
# when starting a distributed SSM cluster. Or in some cases, it may leads to some
# error (cases reported on Ubuntu OS).
#export JAVA_HOME=


# Options used to start SSM Server JVM
#export SSM_SERVER_JAVA_OPT=

# Options used to start SSM Agent JVM
#export SSM_AGENT_JAVA_OPT=

# Common options used to start JVM both for SSM Server and Agent
#export SSM_JAVA_OPT=

0 comments on commit e8aeb5b

Please sign in to comment.