4

I want to insert data from xlsx file into table. Excel has around 1,20,000 records. But while running transformation, I am getting below error:

GC overhead limit exceeded

I have changed in spoon.bat.

Xmx2g -XX:MaxPermSize=1024m

But still I am getting this error.

Can someone please help on this?

techraf
  • 64,883
  • 27
  • 193
  • 198
Nilesh Patil
  • 91
  • 2
  • 11

4 Answers4

6

In my case , additional to adding the Xms and Xmx parameters(which didnt solve it completly) i added the option -XX:-UseGCOverheadLimit to spoon.sh and the problem solved.

Luis Leal
  • 3,388
  • 5
  • 26
  • 49
1

Yes it work I increate the memory to 4GB issue is fixed.

if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms2048m" "-Xmx4096m"

Lenny
  • 11
  • 1
0

This is a known bug with apache POI. the xlsx input step is not able to read big files. I usually turn my files into CVS in such cases. here is the jira case. http://jira.pentaho.com/browse/PDI-5269

The environment variable PENTAHO_DI_JAVA_OPTIONS is used to add option to the starting of jre. Mine is set to "-Xms512m -Xmx3000M -XX:MaxPermSize=256m"

Gildas
  • 1
  • 1
0

Split the file into two different files, save half of the data in one file and the remaining in another. It works perfectly.

Laurenz Albe
  • 209,280
  • 17
  • 206
  • 263