Skip to main content Skip to complementary content

Specifying Java heap size for a Remote Engine service

When you have installed Talend Remote Engine as a system service, you can adjust the Java heap size (the JVM memory) allocated to it.

The recommended Java heap size is 1 GB.
Information noteTip: If you do not install Talend Remote Engine as service, the default allocated memory is calculated by a JVM instance itself to be one quarter of the available memory. In this case, if you need to adjust the maximum heap size, use the -Xmx option such as -Xmx1024M or -Xmx1G in an environment variable, for example JAVA_OPTS or EXTRA_JAVA_OPTS, or modify <remote_engine_installation>/setenv/setenv.bat.

Procedure

  1. Stop the engine.
  2. Browse to <remote_engine_installation>/etc and open the talend-remote-engine-wrapper.conf file.
  3. Change the value of the wrapper.java.maxmemory property to 1024.
    Note that the maximum allowed heap size is 4096 MB (about 4 GB). If you set a size larger than this, only 4096 MB is allocated.
    Information noteTip: If you need to work around this limitation, add a wrapper.java.additional.xx parameter with the desired heap size. Replace xx with a unique number to differentiate it from other wrapper.java.additional.xx parameters. For example, use wrapper.java.additional.12 = -Xmx8196m if eleven other wrapper.java.additional.xx parameters already exist.
  4. Start the engine.

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 – please let us know!