[jboss-jira] [JBoss JIRA] (WFCORE-2925) Separate heap settings in standalone.conf and domain.conf from rest of JAVA_OPTS
Marek Kopecký (Jira)
issues at jboss.org
Fri Feb 22 08:12:00 EST 2019
[ https://issues.jboss.org/browse/WFCORE-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marek Kopecký updated WFCORE-2925:
----------------------------------
Affects Version/s: 8.0.0.Beta5
> 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
> Affects Versions: 8.0.0.Beta5
> Reporter: Brian Stansberry
> Assignee: James Perkins
> Priority: Major
>
> 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.12.1#712002)
More information about the jboss-jira
mailing list