Skip to main content Skip to complementary content
Close announcements banner

Increasing the memory of Apache Tomcat

Procedure

  1. Edit the configuration file.
    • On Ubuntu, the configuration file is <TomcatPath>/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<1G> -Dtalend.catalog=<catalogName> -Dtalend.schema=<schemaName>

Results

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

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!