7.2. Adjust memory settings

The default configuration for the server to start with, if no other configuration is specified, is the production configuration. It is recommended to run the example Seam applications that are included with the documentation using the production configuration. To avoid memory issues, adjust the memory settings before deploying the applications.
On a Linux Platform

Memory settings can be adjusted on a Linux platform by updating JAVA_OPTS settings in the file JBOSS_DIST/jboss-as/server/production/run.conf with these recommended values:

-Xms1303m -Xmx1303m -XX:PermSize=256m -XX:MaxPermSize=256m

On Microsoft Windows

To adjust the memory settings on Microsoft Windows, locate the run.bat file in the bin sub-directory of the JBOSS_HOME environment variable (%JBOSS_HOME%\bin\run.bat). Edit this file at the appropriate set JAVA_OPTS line corresponding to the comment JVM memory allocation pool parameters. Modify this line according to the following recommended values:

-Xms1303m -Xmx1303m -XX:PermSize=256m -XX:MaxPermSize=256m