[resolved] Exception in thread "main" java.lang.OutOfMemoryError:

Two Stars

[resolved] Exception in thread "main" java.lang.OutOfMemoryError:

Hello everyone
Working on talend I had the following error 
" Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
disconnected
disconnected
at java.lang.StringBuffer.append(Unknown Source)
at d.uno_uno_0_1.uno_uno.tFileInputDelimited_2Process(uno_uno.java:15572)
at d.uno_uno_0_1.uno_uno.tFileInputDelimited_1Process(uno_uno.java:8421)
at d.uno_uno_0_1.uno_uno.runJobInTOS(uno_uno.java:16845)
at d.uno_uno_0_1.uno_uno.main(uno_uno.java:16702)"
I have increased memory -Xms and -Xmx but I still get the same error without knowing what I can do.
The process I want to perform involves a csv file (1GB in size) pass it through tmap and tuniqrow to then enter it into the database.
Once you finish inserting this first file csv happens to perform the same process but for another csv file (of equal size)

attached image
Saludos ! 

Accepted Solutions
Moderator

Re: [resolved] Exception in thread "main" java.lang.OutOfMemoryError:

Hi,
Here is a KB article TalendHelpCenter:Exception outOfMemory. Could you please try the resolutions to see if it fixes the problem?
Regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

All Replies
Moderator

Re: [resolved] Exception in thread "main" java.lang.OutOfMemoryError:

Hi,
Here is a KB article TalendHelpCenter:Exception outOfMemory. Could you please try the resolutions to see if it fixes the problem?
Regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Two Stars

Re: [resolved] Exception in thread "main" java.lang.OutOfMemoryError:

Hi,
The article that recommended me worked, I had to optimize the work and put more memory to all the work.
Thanks, I have already been able to upload a file of more than 1 gb
Moderator

Re: [resolved] Exception in thread "main" java.lang.OutOfMemoryError:

Hi,
Great it works. Thanks for your feedback and marking this topic as resolved.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.