91 lines
3.0 KiB
Bash
91 lines
3.0 KiB
Bash
## -*- shell-script -*- ######################################################
|
|
## ##
|
|
## JBoss Bootstrap Script Configuration ##
|
|
## ##
|
|
##############################################################################
|
|
|
|
#
|
|
# This file is optional; it may be removed if not needed.
|
|
#
|
|
|
|
#
|
|
# Specify the maximum file descriptor limit, use "max" or "maximum" to use
|
|
# the default, as queried by the system.
|
|
#
|
|
# Defaults to "maximum"
|
|
#
|
|
#MAX_FD="maximum"
|
|
|
|
#
|
|
# Specify the profiler configuration file to load.
|
|
#
|
|
# Default is to not load profiler configuration file.
|
|
#
|
|
#PROFILER=""
|
|
|
|
#
|
|
# Specify the location of the Java home directory. If set then $JAVA will
|
|
# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".
|
|
#
|
|
#JAVA_HOME="/opt/java/jdk"
|
|
|
|
|
|
# tell linux glibc how many memory pools can be created that are used by malloc
|
|
# MALLOC_ARENA_MAX="5"
|
|
|
|
#
|
|
# Specify the exact Java VM executable to use.
|
|
#
|
|
#JAVA=""
|
|
|
|
if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
|
|
JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman"
|
|
fi
|
|
|
|
# Default JDK_SERIAL_FILTER settings
|
|
#
|
|
if [ "x$JDK_SERIAL_FILTER" = "x" ]; then
|
|
JDK_SERIAL_FILTER="maxbytes=10485760;maxdepth=128;maxarray=100000;maxrefs=300000"
|
|
fi
|
|
|
|
# Uncomment the following line to disable jdk.serialFilter settings
|
|
#
|
|
#DISABLE_JDK_SERIAL_FILTER=true
|
|
|
|
#
|
|
# Specify options to pass to the Java VM.
|
|
#
|
|
if [ "x$JBOSS_JAVA_SIZING" = "x" ]; then
|
|
JBOSS_JAVA_SIZING="-Xms64m -Xmx512m -XX:MaxMetaspaceSize=256m"
|
|
fi
|
|
if [ "x$JAVA_OPTS" = "x" ]; then
|
|
JAVA_OPTS="$JBOSS_JAVA_SIZING -Djava.net.preferIPv4Stack=true"
|
|
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
|
|
else
|
|
echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"
|
|
fi
|
|
|
|
# Use JBoss Modules lockless mode
|
|
#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.lockless=true"
|
|
|
|
# Uncomment this to run with a security manager enabled
|
|
# SECMGR="true"
|
|
|
|
# The ProcessController process uses its own set of java options
|
|
if [ "x$PROCESS_CONTROLLER_JAVA_OPTS" = "x" ]; then
|
|
PROCESS_CONTROLLER_JAVA_OPTS="$JAVA_OPTS"
|
|
fi
|
|
|
|
# The HostController process uses its own set of java options
|
|
if [ "x$HOST_CONTROLLER_JAVA_OPTS" = "x" ]; then
|
|
HOST_CONTROLLER_JAVA_OPTS="$JAVA_OPTS"
|
|
fi
|
|
|
|
# Sample JPDA settings for remote socket debuging.
|
|
#PROCESS_CONTROLLER_JAVA_OPTS="$PROCESS_CONTROLLER_JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8788,server=y,suspend=n"
|
|
#HOST_CONTROLLER_JAVA_OPTS="$HOST_CONTROLLER_JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"
|
|
|
|
# Sample JPDA settings for shared memory debugging
|
|
#PROCESS_CONTROLLER_JAVA_OPTS="$PROCESS_CONTROLLER_JAVA_OPTS -agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=jboss"
|
|
#HOST_CONTROLLER_JAVA_OPTS="$HOST_CONTROLLER_JAVA_OPTS -agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=jboss"
|