I am using the latest version of POI 3.5 to read Excel. I have Excel MS Office 2007 installed, and for this poi provides XSSF for data execution.
For 15,000 rows of data, it runs correctly, but if the limit is exceeded to 30,000 or 100,000 or 200,000, it is subject to a Java heap space Exception.
Code below:
UATinput = new FileInputStream(UATFilePath); uatBufferedInputStream = new BufferedInputStream(UATinput); UATworkbook = new XSSFWorkbook(uatBufferedInputStream);
I get an exception in the last line for Java heap size. I increased the size with -Xms256m -Xmx1536m , but still it provides a Java heap space Exception to get additional data.
Can someone help me on this exception for XSSFWorbook?
source share