Skip to content

Commit

Permalink
[WFLY-19940] Remove MaxMetaspaceSize settings
Browse files Browse the repository at this point in the history
  • Loading branch information
bstansberry committed Nov 13, 2024
1 parent 3ad1c4d commit 218e14f
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/Getting_Started_Guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ to what's shown below.
 
JAVA: java
 
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=com.yourkit,org.jboss.byteman -Djava.awt.headless=true
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=com.yourkit,org.jboss.byteman -Djava.awt.headless=true
 
=========================================================================
 
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fi
# Specify options to pass to the Java VM.
#
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true"
JAVA_OPTS="-Xms64m -Xmx512m -Djava.net.preferIPv4Stack=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ rem # options that are always passed by run.bat.
rem #

rem # JVM memory allocation pool parameters - modify as appropriate.
set "JAVA_OPTS=-Xms64M -Xmx512M -XX:MaxMetaspaceSize=256m"
set "JAVA_OPTS=-Xms64M -Xmx512M"

rem # Prefer IPv4
set "JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ $JAVA_OPTS = @()
# JVM memory allocation pool parameters - modify as appropriate.
$JAVA_OPTS += '-Xms64M'
$JAVA_OPTS += '-Xmx512M'
$JAVA_OPTS += '-XX:MaxMetaspaceSize=256m'

# Reduce the RMI GCs to once per hour for Sun JVMs.
$JAVA_OPTS += '-Dsun.rmi.dgc.client.gcInterval=3600000'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<param name="host" value="primary"/>
<feature spec="host.jvm">
<param name="jvm" value="default"/>
<param name="jvm-options" value="[&quot;-server&quot;,&quot;-XX:MetaspaceSize=96m&quot;,&quot;-XX:MaxMetaspaceSize=256m&quot;]"/>
<param name="jvm-options" value="[&quot;-server&quot;,&quot;-XX:MetaspaceSize=96m&quot;]"/>
</feature>
</feature>
</feature-group-spec>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<param name="host" value="secondary"/>
<feature spec="host.jvm">
<param name="jvm" value="default"/>
<param name="jvm-options" value="[&quot;-server&quot;,&quot;-XX:MetaspaceSize=96m&quot;,&quot;-XX:MaxMetaspaceSize=256m&quot;]"/>
<param name="jvm-options" value="[&quot;-server&quot;,&quot;-XX:MetaspaceSize=96m&quot;]"/>
</feature>
</feature>
</feature-group-spec>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<param name="host" value="primary"/>
<feature spec="host.jvm">
<param name="jvm" value="default"/>
<param name="jvm-options" value="[&quot;-server&quot;,&quot;-XX:MetaspaceSize=96m&quot;,&quot;-XX:MaxMetaspaceSize=256m&quot;]"/>
<param name="jvm-options" value="[&quot;-server&quot;,&quot;-XX:MetaspaceSize=96m&quot;]"/>
</feature>
<feature spec="host.server-config">
<param name="server-config" value="server-two"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<param name="jvm" value="default"/>
<param name="heap-size" value="64m"/>
<param name="max-heap-size" value="256m"/>
<param name="jvm-options" value="[&quot;-server&quot;,&quot;-XX:MetaspaceSize=96m&quot;,&quot;-XX:MaxMetaspaceSize=256m&quot;]"/>
<param name="jvm-options" value="[&quot;-server&quot;,&quot;-XX:MetaspaceSize=96m&quot;]"/>
<unset param="environment-variables"/>
</feature>
</feature>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<param name="jvm" value="default"/>
<param name="heap-size" value="64m"/>
<param name="max-heap-size" value="256m"/>
<param name="jvm-options" value="[&quot;-server&quot;,&quot;-XX:MetaspaceSize=96m&quot;,&quot;-XX:MaxMetaspaceSize=256m&quot;]"/>
<param name="jvm-options" value="[&quot;-server&quot;,&quot;-XX:MetaspaceSize=96m&quot;]"/>
<unset param="environment-variables"/>
</feature>
</include>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</feature>
<feature spec="host.jvm">
<param name="jvm" value="default"/>
<param name="jvm-options" value="[&quot;-server&quot;,&quot;-XX:MetaspaceSize=96m&quot;,&quot;-XX:MaxMetaspaceSize=256m&quot;]"/>
<param name="jvm-options" value="[&quot;-server&quot;,&quot;-XX:MetaspaceSize=96m&quot;]"/>
</feature>
<feature spec="host.server-config">
<param name="server-config" value="server-two"/>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
<!-- Surefire args -->
<surefire.extra.args></surefire.extra.args>
<surefire.jpda.args></surefire.jpda.args>
<surefire.non-modular.system.args>-ea -Duser.region=US -Duser.language=en -XX:MaxMetaspaceSize=1024m ${surefire.jpda.args} ${surefire.extra.args} ${surefire.jacoco.args}</surefire.non-modular.system.args>
<surefire.non-modular.system.args>-ea -Duser.region=US -Duser.language=en ${surefire.jpda.args} ${surefire.extra.args} ${surefire.jacoco.args}</surefire.non-modular.system.args>
<surefire.system.args>${modular.jdk.args} ${security.manager.props} ${surefire.non-modular.system.args}</surefire.system.args>
<arquillian.servlet.protocol>Servlet 5.0</arquillian.servlet.protocol>
<testLogToFile>true</testLogToFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
<jvm-options>
<option value="-ea"/>
<option value="-XX:MetaspaceSize=96m"/>
<option value="-XX:MaxMetaspaceSize=256m"/>
</jvm-options>
</jvm>
</jvms>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
<jvm-options>
<option value="-ea"/>
<option value="-XX:MetaspaceSize=96m"/>
<option value="-XX:MaxMetaspaceSize=256m"/>
</jvm-options>
</jvm>
</jvms>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static void startContainer() {
System.out.println("jvm.args:" + System.getProperty("jvm.args"));
System.out.println("basedir:" + System.getProperty("basedir"));
System.setProperty("jvm.args", ORIGINAL_JVM_ARGS +
" -Xmx512m -XX:MaxMetaspaceSize=256m " +
" -Xmx512m " +
"-Dorg.jboss.byteman.verbose " +
"-Djboss.modules.system.pkgs=org.jboss.byteman " +
"-Dorg.jboss.byteman.transform.all " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
<jvm-options>
<option value="-server"/>
<option value="-XX:MetaspaceSize=96m"/>
<option value="-XX:MaxMetaspaceSize=256m"/>
</jvm-options>
</jvm>
</jvms>
Expand Down

0 comments on commit 218e14f

Please sign in to comment.