Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
SMahadevan1608028474
Contributor
Contributor

exception in thread "main" java.lang.OutOfMemoryError: Java heap space

Even after adding JVM parameter still am getting this error.

Labels (2)
11 Replies
Prakhar1
Creator III
Creator III

did you add

-XX:-UseGCOverheadLimit

SMahadevan1608028474
Contributor
Contributor
Author

Yes, I have added already in Jvm arguments -XX:-UseGCOverheadLimit

David_Beaty
Specialist
Specialist

Sounds like you have components in use that are holding all the data rows in memory whilst it's running. Look for things like:

  • tUniqRow
  • tSortRow
  • tMap
  • tAggregate

Ensure you've enabled the use of disk to perform actions on.

SMahadevan1608028474
Contributor
Contributor
Author

Thanks for your reply on this. Here I am using only Tmap and SchemaComplianceCheck components. Therefore If I want to enable to use disk space... where in Talend? if it is my system I have enough space in my disk.

David_Beaty
Specialist
Specialist

Hi,

 

In the tMap component, if you select it only (don't double click) there's a field in the Basic settings as to the path to the "Temp data directory path". You use put in a context variable here to dynamically adjust where the files go or just put a fixed path.

 

 

Thanks

 

David.

 

If these answers are useful, don't forget to give Kudos

SMahadevan1608028474
Contributor
Contributor
Author

I have set the path in Temp Data directory path for tMap component.The files are getting generated in specified path even though am getting the error once the job complete. (Ref: Heap Memory.jpg)

David_Beaty
Specialist
Specialist

Hi,

 

I would suggest you use something like Java Visual VM and monitor the job when its running and see at what point it starts to eat all the memory.

 

Thanks

 

David

 

If these answers are useful, don't forget to give Kudos

SMahadevan1608028474
Contributor
Contributor
Author

Is It right path to download https://visualvm.github.io/download.html

David_Beaty
Specialist
Specialist

Hi

It should be part of your Java, if you've got the JDK installed, under the {java JDK home}/bin folder - jvisualvm.exe

 

Thanks

 

David

 

If these answers are useful, don't forget to give Kudos