Skip to content

Instantly share code, notes, and snippets.

@macmule
Created November 21, 2021 20:05
Show Gist options
  • Select an option

  • Save macmule/652049ba402367f1c73809c1b9f8c7d8 to your computer and use it in GitHub Desktop.

Select an option

Save macmule/652049ba402367f1c73809c1b9f8c7d8 to your computer and use it in GitHub Desktop.
#
# Specify options to pass to the Java VM.
#
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Xms128m -Xmx4g -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.server.default.config=standalone.xml"
else
echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment