Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid maximum heap size: -Xmx2048M
The specified size exceeds the maximum representable size.
The JVM heap size can be modified as follows:
1 - Talend .ini File: You can modify the memory allocated to Talend Studio by modifying the Studio .ini configuration file, such as TOS_DI-win32-x86.ini for 32-bit Windows systems. This configuration file is located in your Studio installation folder.
By default the ini file includes the following JVM parameters:
-vmargs
-Xms64m
-Xmx768m
-XX:MaxPermSize=512m
-Dfile.encoding=UTF-8
The memory that you can allocate to your Talend Studio depends mostly on your system memory availability. The following are common recommendations:
With 2 GB of memory available on a 32-bit system, bounds can be changed as follows:
-vmargs
-Xms256m
-Xmx1024m
-XX:MaxPermSize=256m
-Dfile.encoding=UTF-8
With 8 GB of memory available on 64-bit system, the optimal settings can be
-vmargs
-Xms1024m
-Xmx4096m
-XX:MaxPermSize=512m
-Dfile.encoding=UTF-8
To test how much memory can be allocated to your JVM, from a command line, run the following:
java -Xmx????m -version where ???? are valid memory assignments - 512, 1024, 2048, 4096. Use the amount that your system accepts (when it returns your default java environment info) - see screenshot below.
2 - The studio settings: Go to Windows > Preferences
3 - Job Properties: JVM heap size can be set on the job itself: Open the job, go to the Run tab, click on Advanced Settings: