# Increasing the memory of Apache Tomcat

## Procedure

1. Edit the configuration file.
   * On Ubuntu, the configuration file is &lt;TomcatPath&gt;/bin/catalina.sh.
   * On Rocky Linux and RHEL, the configuration file is /etc/tomcat/tomcat.conf.
   * On other Linux distributions, the configuration file is /usr/share/tomcat/conf.
2. Add the following line:

   set JAVA\_OPTS=%JAVA\_OPTS% -XX:MaxMetaspaceSize=512m -Xmx1024m -Xms256m
3. If you are an Oracle user, add the following line in order to specify the catalog and schema database parameters, and to avoid errors during Talend Administration Center startup:

   Xmx&lt;1G&gt; -Dtalend.catalog=&lt;catalogName&gt; -Dtalend.schema=&lt;schemaName&gt;

## Results

The Apache Tomcat memory size is now increased and the server can hold several web applications.