[jboss-jira] [JBoss JIRA] (WFCORE-2925) Separate heap settings in standalone.conf and domain.conf from rest of JAVA_OPTS
Brian Stansberry (JIRA)
issues at jboss.org
Wed Jun 7 05:24:00 EDT 2017
Brian Stansberry created WFCORE-2925:
----------------------------------------
Summary: Separate heap settings in standalone.conf and domain.conf from rest of JAVA_OPTS
Key: WFCORE-2925
URL: https://issues.jboss.org/browse/WFCORE-2925
Project: WildFly Core
Issue Type: Enhancement
Components: Scripts
Reporter: Brian Stansberry
Assignee: Tomaz Cerar
Let's do this:
{code}
if [ "x$JBOSS_JAVA_SIZING" = "x" ]; then
JBOSS_JAVA_SIZING="-Xms64m -Xmx512m -XX:MetaspaceSize=96M -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
{code}
That will allow users to easily control memory sizing by setting that specific env var externally while still relying on our defaults for all the other fussy stuff in JAVA_OPTS.
The JBOSS_JAVA_SIZING name was 20 secs of thought on my part.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list