Allow user-defined `JAVA_OPTS` in the startup script (#6316)
This commit is contained in:
parent
d12d3f201a
commit
f44ed756df
|
|
@ -9,12 +9,11 @@ Release Notes.
|
|||
|
||||
#### Java Agent
|
||||
* Remove invalid mysql configuration in agent.config.
|
||||
* Add net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.Listener
|
||||
to show detail message when redifine errors occur
|
||||
* Add net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.Listener to show detail message when redifine errors occur
|
||||
|
||||
|
||||
#### OAP-Backend
|
||||
|
||||
* Allow user-defined `JAVA_OPTS` in the startup script.
|
||||
|
||||
#### UI
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
|
|
@ -14,14 +15,12 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#!/usr/bin/env sh
|
||||
|
||||
PRG="$0"
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
[ -z "$OAP_HOME" ] && OAP_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
|
||||
PRGDIR=$(dirname "$PRG")
|
||||
[ -z "$OAP_HOME" ] && OAP_HOME=$(cd "$PRGDIR/.." > /dev/null || exit 1; pwd)
|
||||
|
||||
OAP_LOG_DIR="${OAP_LOG_DIR:-${OAP_HOME}/logs}"
|
||||
JAVA_OPTS=" -Xms256M -Xmx512M"
|
||||
JAVA_OPTS="${JAVA_OPTS:- -Xms256M -Xmx512M}"
|
||||
|
||||
if [ ! -d "${OAP_LOG_DIR}" ]; then
|
||||
mkdir -p "${OAP_LOG_DIR}"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
|
|
@ -14,14 +15,12 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#!/usr/bin/env sh
|
||||
|
||||
PRG="$0"
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
[ -z "$OAP_HOME" ] && OAP_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
|
||||
PRGDIR=$(dirname "$PRG")
|
||||
[ -z "$OAP_HOME" ] && OAP_HOME=$(cd "$PRGDIR/.." > /dev/null || exit 1; pwd)
|
||||
|
||||
OAP_LOG_DIR="${OAP_HOME}/logs"
|
||||
JAVA_OPTS=" -Xms256M -Xmx512M"
|
||||
JAVA_OPTS="${JAVA_OPTS:- -Xms256M -Xmx512M}"
|
||||
|
||||
if [ ! -d "${OAP_HOME}/logs" ]; then
|
||||
mkdir -p "${OAP_LOG_DIR}"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
|
|
@ -14,14 +15,12 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#!/usr/bin/env sh
|
||||
|
||||
PRG="$0"
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
[ -z "$OAP_HOME" ] && OAP_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
|
||||
PRGDIR=$(dirname "$PRG")
|
||||
[ -z "$OAP_HOME" ] && OAP_HOME=$(cd "$PRGDIR/.." > /dev/null || exit 1; pwd)
|
||||
|
||||
OAP_LOG_DIR=${OAP_LOG_DIR:-"${OAP_HOME}/logs"}
|
||||
JAVA_OPTS=" -Xms256M -Xmx512M"
|
||||
JAVA_OPTS="${JAVA_OPTS:- -Xms256M -Xmx512M}"
|
||||
|
||||
if [ ! -d "${OAP_HOME}/logs" ]; then
|
||||
mkdir -p "${OAP_LOG_DIR}"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
|
|
@ -14,14 +15,12 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
#!/usr/bin/env sh
|
||||
|
||||
PRG="$0"
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
[ -z "$WEBAPP_HOME" ] && WEBAPP_HOME=`cd "$PRGDIR/.." >/dev/null; pwd`
|
||||
PRGDIR=$(dirname "$PRG")
|
||||
[ -z "$WEBAPP_HOME" ] && WEBAPP_HOME=$(cd "$PRGDIR/.." > /dev/null || exit 1; pwd)
|
||||
|
||||
WEBAPP_LOG_DIR="${WEBAPP_LOG_DIR:-${WEBAPP_HOME}/logs}"
|
||||
JAVA_OPTS=" -Xms256M -Xmx512M"
|
||||
JAVA_OPTS="${JAVA_OPTS:- -Xms256M -Xmx512M}"
|
||||
JAR_PATH="${WEBAPP_HOME}/webapp"
|
||||
|
||||
if [ ! -d "${WEBAPP_LOG_DIR}" ]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue