Procedure
-
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.
-
Add the following line:
set JAVA_OPTS=%JAVA_OPTS%
-XX:MaxMetaspaceSize=512m -Xmx1024m -Xms256m
-
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.