1## -*- shell-script -*- ######################################################
2##                                                                          ##
3##  WildFly bootstrap Script Configuration                                    ##
4##                                                                          ##
5##############################################################################
6
7#
8# This file is optional; it may be removed if not needed.
9#
10
11#
12# Specify the maximum file descriptor limit, use "max" or "maximum" to use
13# the default, as queried by the system.
14#
15# Defaults to "maximum"
16#
17#MAX_FD="maximum"
18
19#
20# Specify the profiler configuration file to load.
21#
22# Default is to not load profiler configuration file.
23#
24#PROFILER=""
25
26#
27# Specify the location of the Java home directory.  If set then $JAVA will
28# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java".
29#
30#JAVA_HOME="/opt/java/jdk"
31
32# tell linux glibc how many memory pools can be created that are used by malloc
33# MALLOC_ARENA_MAX="5"
34
35#
36# Specify the exact Java VM executable to use.
37#
38#JAVA=""
39
40if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
41   JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman"
42fi
43
44# Uncomment the following line to prevent manipulation of JVM options
45# by shell scripts.
46#
47#PRESERVE_JAVA_OPTS=true
48
49#
50# Specify options to pass to the Java VM.
51#
52if [ "x$JAVA_OPTS" = "x" ]; then
53   JAVA_OPTS="-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true"
54   JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
55else
56   echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"
57fi
58
59# Sample JPDA settings for remote socket debugging
60#JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"
61
62# Sample JPDA settings for shared memory debugging
63#JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=jboss"
64
65# Uncomment to not use JBoss Modules lockless mode
66#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.lockless=false"
67
68# Uncomment to gather JBoss Modules metrics
69#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.metrics=true"
70
71# Uncomment to enable the experimental JDK 11 support for ByteBuddy
72# ByteBuddy is the default bytecode provider of Hibernate ORM
73#JAVA_OPTS="$JAVA_OPTS -Dnet.bytebuddy.experimental=true"
74
75# Uncomment this to run with a security manager enabled
76# SECMGR="true"
77
78# Uncomment this in order to be able to run WildFly on FreeBSD
79# when you get "epoll_create function not implemented" message in dmesg output
80#JAVA_OPTS="$JAVA_OPTS -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider"
81
82# Uncomment this out to control garbage collection logging
83# GC_LOG="true"
84
85# Uncomment and edit to use a custom java.security file to override all the Java security properties
86#JAVA_OPTS="$JAVA_OPTS -Djava.security.properties==/path/to/custom/java.security"
87
88# Uncomment to add a Java agent. If an agent is added to the module options, then jboss-modules.jar is added as an agent
89# on the JVM. This allows things like the log manager or security manager to be configured before the agent is invoked.
90# MODULE_OPTS="-javaagent:agent.jar"
91