DEV Community


🛠 Increase heap memory on WildFly

Orestis Pantazos
DevOps Engineer @ Open DevOps
Updated on ・1 min read

WildFly application servers gives us the opportunity to increase heap memory for faster results on our web applications that we are running locally on development environment. There is only one step as shown below:

Step 1:

In the WildFly installation home directory, we can find the standalone.conf (for Unix based systems) or standalone.conf.bat (for Windows systems) file in the bin folder.

  1. We can simply open it and update the -Xmx option in the following line (change the number as per the requirement):
JAVA_OPTS="-Xms64m -Xmx512m ..."
Enter fullscreen mode Exit fullscreen mode

Step 2:

  1. This will set the heap memory while starting up the server. (We need to restart the server)

Discussion (0)