Print this page
Wednesday, 18 September 2013 09:45

Managing JVM heap size in Talend Open Studio

Written by
Rate this item
(1 Vote)

Talend Open Studio (DI / Big Data and other versions as well) allows you to manage your machine's JVM heap size (allocated memory) in a number of places. Not having the right amount of memory can result in a number of errors including the following:

demo

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.

demo

2 - The studio settings: Go to Windows > Preferences

demo

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:

demo
Read 14498 times Last modified on Wednesday, 03 June 2015 20:48
Will Munji

Will Munji is a seasoned data integration, data warehousing and business intelligence (BI) architect & developer who has been working in the DW/BI space for a while. He got his start in BI working on Brio SQR (later Hyperion SQR) and the Crystal Decisions stack (Reports, Analysis & Enterprise) and SAP BusinessObjects / Microsoft BI stacks. He currently focuses on Talend Data Management Suite, Hadoop, SAP BusinessObjects BI stack as well as Jaspersoft and Tableau. He has consulted for many organizations across a variety of industries including healthcare, manufacturing, retail, insurance and banking. At Kindle Consulting, Will delivers DW/BI/Data Integration solutions that range from front-end BI development (dashboards, reports, cube development, T-SQL/ PL/SQL ...) to data services (ETL/ DI development), data warehouse architecture and development, data integration to BI Architecture design and deployment.

Latest from Will Munji

Related items

6 comments