tom@781: ## -*- shell-script -*- ###################################################### tom@781: ## ## tom@781: ## JBoss Bootstrap Script Configuration ## tom@781: ## ## tom@781: ############################################################################## tom@781: tom@781: # tom@781: # This file is optional; it may be removed if not needed. tom@781: # tom@781: tom@781: # tom@781: # Specify the maximum file descriptor limit, use "max" or "maximum" to use tom@781: # the default, as queried by the system. tom@781: # tom@781: # Defaults to "maximum" tom@781: # tom@781: #MAX_FD="maximum" tom@781: tom@781: # tom@781: # Specify the profiler configuration file to load. tom@781: # tom@781: # Default is to not load profiler configuration file. tom@781: # tom@781: #PROFILER="" tom@781: tom@781: # tom@781: # Specify the location of the Java home directory. If set then $JAVA will tom@781: # be defined to $JAVA_HOME/bin/java, else $JAVA will be "java". tom@781: # tom@781: #JAVA_HOME="/opt/java/jdk" tom@781: tom@781: # tom@781: # Specify the exact Java VM executable to use. tom@781: # tom@781: #JAVA="" tom@781: tom@781: if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then tom@781: JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman" tom@781: fi tom@781: tom@781: # Uncomment the following line to prevent manipulation of JVM options tom@781: # by shell scripts. tom@781: # tom@781: #PRESERVE_JAVA_OPTS=true tom@781: tom@781: # tom@781: # Specify options to pass to the Java VM. tom@781: # tom@781: if [ "x$JAVA_OPTS" = "x" ]; then tom@781: JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true" tom@781: JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true" tom@781: else tom@781: echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS" tom@781: fi tom@781: tom@781: # REST-interfaces will deliver wrong timestamps if timezone is not UTC tom@781: JAVA_OPTS="$JAVA_OPTS -Duser.timezone=UTC" tom@781: tom@781: # Sample JPDA settings for remote socket debugging tom@781: #JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n" tom@781: tom@781: # Sample JPDA settings for shared memory debugging tom@781: #JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=jboss" tom@781: tom@781: # Uncomment to not use JBoss Modules lockless mode tom@781: #JAVA_OPTS="$JAVA_OPTS -Djboss.modules.lockless=false" tom@781: tom@781: # Uncomment to gather JBoss Modules metrics tom@781: #JAVA_OPTS="$JAVA_OPTS -Djboss.modules.metrics=true" tom@781: tom@781: # Uncomment this in order to be able to run WildFly on FreeBSD tom@781: # when you get "epoll_create function not implemented" message in dmesg output tom@781: #JAVA_OPTS="$JAVA_OPTS -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider"