Setting VM parameters in WildFly

Setting JVM parameters to be picked up by the JVM running WildFly can be done in several ways. The most common ways are as follows:

  • Setting the parameters to an environment variable directly in the shell that starts the JVM.
  • Setting the parameters in the server startup script, for example, in $WILDFLY_HOME/bin/standalone.sh or domain.sh.
  • Setting the parameters in the server configuration file, that is, in $WILDFLY_HOME/bin/standalone.conf or domain.conf.

The first alternative is in practice not very useful for anything other that testing out new variables.

The second alternative can be used, but previously set parameters might be lost. Also, putting the configuration on the wrong line can easily mess up the rest of ...

Get WildFly Performance Tuning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.