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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sushantk19
Creator
Creator

Java heap space issue while reading large of data from source

Hi,

 

I am trying to read large amount of data approx 3 to 5 millions records from SQL server like source(Heidisql). I keep getting the Java heap space error:

 

error is:
Exception in thread "Thread-0" java.lang.OutOfMemoryError: Java heap space
at java.util.LinkedList.listIterator(Unknown Source)
at java.util.AbstractList.listIterator(Unknown Source)

 

I read some of the community posts about it also documentation around it. Things I tried are :

 

1. Enable Stream option is checked

2. Increasing JVM parameters  ie xms2048M and Xmx4096M

 

Anything else i can do  to handle this?

My job design is tmysqlinput--->tLogrow--->tMap--->tDBoutput.

 

 

 

Labels (2)
10 Replies
Anonymous
Not applicable

Hello,

In your job, there are some cache component consuming two much memory. such as tMap, tLogRow. For a large set of data, please try to store the data on disk instead of memory on tMap to allocate more memory to execute the job.

Best regards

Sabrina

 

Anonymous
Not applicable

Hello,

In your job, there are some cache component consuming two much memory. such as tMap, tLogRow. For a large set of data, please try to store the data on disk instead of memory on tMap to allocate more memory to execute the job.

Best regards

Sabrina

 

sushantk19
Creator
Creator
Author

@xdshi : if I open tmap, on the top left i go to tmap configuration and then Select a Temp data dir path.

How to do for tLogRow? my job reads all 600000 records (approx) and then fails while inserting the data.

sushantk19
Creator
Creator
Author

@xdshi : if I open tmap, on the top left i go to tmap configuration and then Select a Temp data dir path.

How to do for tLogRow? my job reads all 600000 records (approx) and then fails while inserting the data.

sushantk19
Creator
Creator
Author

Also, I noticed while my job is running nothing is getting created in my temp file location. Any idea why could be happening?

sushantk19
Creator
Creator
Author

Also, I noticed while my job is running nothing is getting created in my temp file location. Any idea why could be happening?

Anonymous
Not applicable

Hello,

The tLogRow component is used to display data or results in the Run console. You can use tfileoutputxxx to replace it. Could you please post your tMap component setting screenshot here which will be helpful for us to address your issue?

Best regards

Sabrina

Anonymous
Not applicable

Hello,

The tLogRow component is used to display data or results in the Run console. You can use tfileoutputxxx to replace it. Could you please post your tMap component setting screenshot here which will be helpful for us to address your issue?

Best regards

Sabrina

sushantk19
Creator
Creator
Author

@xdshi :Thanks for your Suggestion!  I have removed tLogRow component from my job and now re-testing my job with this code. Please find attached the screenshot of the tMap config settings.

 

Also, i noticed no temp files are being generated at the defined path. What could be reason for the same?