Stopping memory errors in Talend
When dealing with large amounts of data, there is often a trade-off between performance and memory usage, so it is likely that at some point in your Talend career, you will encounter a problem which is memory related.
This section will cover many of the actions that can be taken to ensure that you are able to deal with your memory errors quickly and efficiently.
Increasing the memory allocated to a job
If you have enough memory and yet your job is failing, then it is worth increasing the amount of memory available to the job you are running. You can do this by changing the value of the Java Xmx
setting.
This setting is available via the Advanced Settings option from the Run tab, as shown in the next screenshot. Simply tick the box for Use specific JVM arguments, and change the value to suit your needs. Note that you can use g
for gigabytes, for example, –Xmx3g
.
Reducing lookup data
The tMap
lookup data is by default stored in memory, so large lookups will...