Increasing the memory of Tomcat - 7.1

Talend Data Integration Installation Guide for Linux

EnrichVersion
7.1
EnrichProdName
Talend Data Integration
task
Installation and Upgrade
EnrichPlatform
Talend Activity Monitoring Console
Talend Administration Center
Talend Artifact Repository
Talend CommandLine
Talend Data Preparation
Talend Data Stewardship
Talend Identity and Access Management
Talend Installer
Talend JobServer
Talend Log Server
Talend Runtime
Talend Studio

Procedure

  1. Edit the configuration file.
    • On Ubuntu, the configuration file is <TomcatPath>/bin/catalina.sh.
    • On CentOS/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 Tomcat memory size is now increased and the server can hold several web applications.